angular / mobile-toolkit

Tools for building progressive web apps with Angular
MIT License
1.34k stars 175 forks source link

Possibility to white list files #160

Open BorntraegerMarc opened 7 years ago

BorntraegerMarc commented 7 years ago

Is it possible to white list files in static.ignore in the ngsw-manifest.json? So that it only considers certain files.

I tried:

"static.ignore": [
    "^((?!\/assets\/bower_components\/app-layout\/app-box\/app-box.html).)*$",
    "^((?!\/assets\/bower_components\/app-layout\/app-drawer\/app-drawer.html).)*$"
]

So basically doing a NOT-Regex-Statement. The problem here is that it works if you only have the first file:

"static.ignore": [
    "^((?!\/assets\/bower_components\/app-layout\/app-box\/app-box.html).)*$"
]

As soon as you add another statement then the files do not match ALL regex criteria. Resulting ultimately in no files get added at all (so all files are ignored).

I just wanted to white list the app-box.html and app-drawer.html