alxhub / io17

106 stars 21 forks source link

How to exclude sass files? #14

Open cars10 opened 7 years ago

cars10 commented 7 years ago

Hi, how do i exclude sass files in the ngsw-manifest.json ? It makes no sense that they are added there.

Eiarzate1 commented 6 years ago

I am having the same issue.

I am running command from example: ngu-sw-manifest --module src/app/app.module.ts \ --out dist/ngsw-manifest.json

This is part of my stack trace: Unhandled Promise rejection: ENOENT: no such file or directory, open '/Users/earzate/Development/Career/profile-pa ge-app/src/assets/sass/colors' ; Zone: ; Task: Promise.then ; Value: { Error: ENOENT: no such file or direc tory, open '/Users/earzate/Development/Career/profile-page-app/src/assets/sass/colors'

Actually the file is not even named '/Users/earzate/Development/Career/profile-page-app/src/assets/sass/colors'

According to sass "Best practices" the file is named '/Users/earzate/Development/Career/profile-page-app/src/assets/sass/_colors.sass'

As mentioned before it would be really nice to know how to execlude our sass directory since it will get compiled to css and that css file is the one that needs to be picked up by the serviceWorker.

Thank you.