serviceworker-webpack-plugin
serviceworker-webpack-plugin copied to clipboard
Specify output `path` folder
I'm working with React app where all the bundled files going to a build folder but I want to be able to set the service worker file to the root public folder.
I can specify filename: '../service-worker.js'
, but when using webpack dev server, this breaks.
Would it be possible to add something like path: path.join(__dirname, 'public')
to the config?
Thanks (and great work with the plugin, it's saved my so many headaches!)