serviceworker-webpack-plugin
serviceworker-webpack-plugin copied to clipboard
Incorrect build with zopfli and brotli plugins
Zopfli plugin and brotli plugin compress static files after build, but service worker plugin executes after them and in the end of build compressed artifacts are contain unfinished service worker without serviceWorkerOption.
I think, it should be able to place service worker plugin before compressors.
This problems is somewhat larger, because the same happens with source maps. The source maps are generated, then after that the variables are injected in the code.
@andre487 Is this problem still relevant? If so, it would be helpful to have a minimal repo to reproduce the problem.