I read this question source maps files in production - is it safe?. I want to generate source map files in different folders with source code. Is there any way to do this with webpack? I also read this thread Relative SourceMap paths for debugging in WebStorm and tested but failed again.
You can use output.sourceMapFilename
like so:
output: {
filename: "bundles/[name].[chunkhash].min.js",
sourceMapFilename: 'maps/[name].[chunkhash].map.js'
},
and then serve only from the bundles
folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With