-
Notifications
You must be signed in to change notification settings - Fork 14
[Overview] How to eliminate unnecessary files. #99
Comments
A few things: Your service worker is currently hosted at You can add in What does your current Workbox build configuration look like? I noticed that you have entries like |
@jeffposnick Thank you very much for your kind and fast reply. It is clear at all. |
Sure thing—I'm still concerned about those (CC: @gauntface) |
Ok. After I used cli command: workbox-cli generate:sw, generated this sw.js file. : (upon I declerared the same you indicated above like : globIgnores: ['**/bower_components']
and result sw.js is :
...... long list...
I didn't share hole list as it is still very long... even I declared globIgnores as bower_compenents . (as above) Hope its enough this. In case I am pleased to send more info.. |
@cappittall What OS are you on? Is there any chance you could share an example project? |
Hello,
When I generate sw with cli: workbox-cli generate:sw, sw created automatically. Its good. But at bower_components directory there are a lot of unnecessary codes (in html etc.) I wonder, is it possible to collect file list only necessary at web app loading. Beside, I load sw in app page after first paint completed (in lazy loading documents.) at devtool/Application tab, seams sw registered. But when I check the app with Audits (lighthouse). says unlucky no service worker. Either I moved the code to index html , it is the same. ( the list at sw too long !) (you can see the live site jobijoy.com )
The text was updated successfully, but these errors were encountered: