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

Specify output `path` folder

Open WolfieZero opened this issue 7 years ago • 0 comments

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!)

WolfieZero avatar Feb 07 '17 12:02 WolfieZero