-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
ERROR in OfflinePlugin: Something went wrong with ServiceWorker entry #10
Comments
@mediabakery thanks for reporting this! Issue happens here https://github.com/NekR/offline-plugin/blob/master/src/service-worker.js#L53 because I do exact check for Anyway, I will have a fix today. |
Btw, in your case, do you want ServiceWorker output file to have hash in its name? |
@NekR Thanks! Yes you are right. I don't need to hash the serviceWorker file name. |
Use `compilation.namedChunks` instead of `compilation.assets` to pick corrent entry and then `chunk.files` to pick correct output file from `compilation.assets` Refs #10
@mediabakery I just pushed the fix, it works for me, but can you try it before I publish it to npm? To test latest update, install |
@NekR Thanks! I'll test it as soon as possible! |
Hey @NekR. It works for me as expected. Thanks! |
Great, thanks for reporting this one! |
Published on |
I tried to use your offline-plugin, but I got an error message. Can you help me please?
The only hint is: ERROR in OfflinePlugin: Something went wrong with ServiceWorker entry
The plugin produces some files
This is my config file: https://gist.github.com/anonymous/9a95e4ebeb7f1868e03b
I would be very grateful if you can give me a hint on what I'm doing wrong.
The text was updated successfully, but these errors were encountered: