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

Easy way to disable plugin #85

Open Arseniy-II opened 6 years ago

Arseniy-II commented 6 years ago

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] feature request

Hello! Thanks for great pligin. It would be nice to have easy way to disable plugin

new ServiceWorkerWebpackPlugin({
    ...
    disable: proces.env.NODE_ENV !== 'production'
});
Skagevang commented 4 years ago

@oliviertassinari is this repo still maintained? This feature would be really nice to have