Menu

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

open
nobody
None
2024-03-31
2024-03-31
Anonymous
No

Originally created by: paveloom

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?

Discussion


Log in to post a comment.