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

Split code for the Workbox library when using the InjectManifest class #3305

Open
paveloom opened this issue Mar 31, 2024 · 0 comments
Open

Comments

@paveloom
Copy link

Currently, when one uses the GenerateSW class from the workbox-webpack-plugin in their Webpack config, a separate runtime file is created for the Workbox library by default (called something like workbox-[hash].js). This behavior can be configured via the inlineWorkboxRuntime option, which has the default value of false.

There is no such option for the InjectManifest class, though. I would like to separate the Workbox runtime from my custom service worker file, too. That would allow me to cache the former (the bigger) file. Would that be possible to implement?

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