[w3c/ServiceWorker] VueJS dynamic imports / lazy loading supported by SW? (#1481)

Currently, I have fresh installation of vuejs app with some test pages and components. All my routes and components are using dynamic imports to load js chunks only when user goes to a particular route or a component is rendered and it is working fine in SPA and SSR mode. The problem occurs in PWA mode when it prefetches all chunks at start.

I have tried 'exclude' function but it still pre-fetched the file. 

Is there a way to exclude complete routes e.g. /admin to be pre-fetched? As this is only for internal use and not needed for offline usage. 

 We are using webpack + workbox bundler. 

Any help would be highly appreciated. 



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1481

Received on Tuesday, 15 October 2019 13:41:20 UTC