Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VueJS dynamic imports / lazy loading supported by SW? #1481

Open
doorkey opened this issue Oct 15, 2019 · 0 comments
Open

VueJS dynamic imports / lazy loading supported by SW? #1481

doorkey opened this issue Oct 15, 2019 · 0 comments

Comments

@doorkey
Copy link

doorkey commented Oct 15, 2019

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.

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

No branches or pull requests

1 participant