You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guys, thanks for rescuing this useful package! There is however one serious issue. I actually wonder how am I the only one seeing this?!
When you use an entry template, in development mode, all works as expected, however, once you switch to production mode in webpack, all hell breaks loose. Apparently, it somehow removes all callbacks from listeners. I've never seen anything like this before, but that seems to be the case.
Please try for yourself, simply run "npm run build-dev", confirm that the code ends up in the final sw.js, then run "npm run build-prod" and you will see that the callbacks are stripped away. Any ideas? Thanks
The text was updated successfully, but these errors were encountered:
I don't have a good feeling ... seems like forked died as well. Is this lib cursed or what :D Well anyways, I will remain hopeful you will reply. If not, I'll just release this under our handle.
Guys, thanks for rescuing this useful package! There is however one serious issue. I actually wonder how am I the only one seeing this?!
When you use an entry template, in development mode, all works as expected, however, once you switch to production mode in webpack, all hell breaks loose. Apparently, it somehow removes all callbacks from listeners. I've never seen anything like this before, but that seems to be the case.
I've made a minimal repo: https://github.com/PeterKottas/offline-plugin-webpack-5
Long story short, my template is this:
But when compiled in production mode, the above becomes:
Please try for yourself, simply run "npm run build-dev", confirm that the code ends up in the final sw.js, then run "npm run build-prod" and you will see that the callbacks are stripped away. Any ideas? Thanks
The text was updated successfully, but these errors were encountered: