Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Possibility to white list files #160

Open
BorntraegerMarc opened this issue Jun 8, 2017 · 0 comments
Open

Possibility to white list files #160

BorntraegerMarc opened this issue Jun 8, 2017 · 0 comments

Comments

@BorntraegerMarc
Copy link

BorntraegerMarc commented Jun 8, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant