oliviertassinari / serviceworker-webpack-plugin

Simplifies creation of a service worker to serve your webpack bundles. :recycle:
https://oliviertassinari.github.io/serviceworker-webpack-plugin/
MIT License
458 stars 76 forks source link

minimize on production mode #93

Closed PepijnSenders closed 5 years ago

PepijnSenders commented 5 years ago

When setting the webpack mode to production I expected the serviceWorkerOption to be minified. After running through the code I noticed this only happens when either the minimize option is set or if the NODE_ENV is equal to production. To adhere to the new webpack configuration property, I think this plugin should also minify when the mode is set to production.

PepijnSenders commented 5 years ago

Done.