How do I run webpack so that it’ll only merge all the subfiles, but keeps all the original function/method/variable names, comments, newlines etc? I need this for debugging…
–mode=development doesn’t keep newlines
Hello @vhelin,
How do I run webpack so that it’ll only merge all the subfiles, but keeps all the original function/method/variable names, comments, newlines etc? I need this for debugging…
This seems to be the default devtool
behaviour within Webpack. Instead of reading the bundle, you should read the sources in the webpack://
folder. You can also disable this behavior by specifying devtool: false.