serviceworker-webpack-plugin icon indicating copy to clipboard operation
serviceworker-webpack-plugin copied to clipboard

Incorrect build with zopfli and brotli plugins

Open andre487 opened this issue 8 years ago • 2 comments

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.

andre487 avatar Oct 19 '17 11:10 andre487

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.

Sebazzz avatar Jan 28 '18 16:01 Sebazzz

@andre487 Is this problem still relevant? If so, it would be helpful to have a minimal repo to reproduce the problem.

woutervanvliet avatar Mar 15 '18 11:03 woutervanvliet