-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
OfflinePlugin: ServiceWorker entry has more than one output file, only first will be used #14
Comments
Thanks for the report, @AsaAyers I personally do not use About this particular warning, it's a bit complicated and in ideal world it should not happen. I thought it won't happen ever. It works this way: To correctly work, Anyway, I have in plans to improve |
I'm not using hot reloading. I just have it setup so that when any files change it tells the browser to refresh and load the new version. It seems like that should be fine if |
Does it need to be a 2nd entry in a chunk? Could the service worker just be it's own chunk? |
SW has separate entry/chunk. It should be first and is first in
Should be problem in any more I think. To update cache, SW anyway needs to be reloaded or update function needs to be called. So on each reload, you need one more reload to update cache. This could work, but what is the reason then to use it in dev mode? I actually do not want to use plugin dev mode myself since I had to reload page twice to get update version. Problem is that at them moment Here is issue for it #4 but I had no time yet for it yet. Would be good to fix anyway. |
Okay, fixed in To test if everything works fine with |
I'm using webpack dev server, and to use inline mode I need to include the dev server entry in my webpack configuration.
This effectively leaves my webpack with:
With the warning that OfflinePlugin produces, I can't figure out what problem it causes or what I can do to get rid of the warning other than just not use Webpack's dev server (not an option).
The text was updated successfully, but these errors were encountered: