-
Notifications
You must be signed in to change notification settings - Fork 829
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
GenerateManifest in workbox-webpack-plugin #1485
Comments
Thanks for the request! Can you share some more background on what benefits that would offer vs. using |
My webpack configuration:
In above webpack config, I am getting two service worker files.
i don't want 2nd one file but want to inject generated |
Try specifying a E.g. my config is:
This grabs a template SW file from the root of my site You also want to make sure your service worker has the same file name when you update it, so you're not versioning it in the filename. You can run into trouble if you change the filename of the service worker, where it won't be able to get to the new one. |
In Workbox webpack plugin v5, the |
This should be addressed by the current Workbox v5.0.0 alpha. |
Library Affected:
workbox-webpack-plugin
Issue or Feature Request Description:
Like
workbox-webpack-plugin~InjectManifest
, can we haveworkbox-webpack-plugin~GenerateManifest
?It should have one callback function with following arguments.
compiler
,compilation
)generated-precahce-manifest-filename
Now developer can inject precahce-manifest-filename in compiled service worker file according to his choice.
The text was updated successfully, but these errors were encountered: