I've tried many things to disable webpack's minify because I need my function names to remain intact. All of this for CEF.
Here's my code: (I've also tried the commented UglifyJSPlugin config.)
const config = {
...
"optimization": {
"minimize": false
/*[
new UglifyJSPlugin({
"test": /\.(js|jsx)$/,
"uglifyOptions": {
"ecma": 6,
"warnings": true,
"mangle": false,
"keep_fnames": true,
"output": {
"beautify": false,
"comments": false
}
}
})
]*/
},
...
"test": /\.(js|jsx)$/,
"exclude": /node_modules/,
"use": {
"loader": "babel-loader",
"options": {
"presets": [
"@babel/env",
"@babel/react"
]
}
I know I don't need babel-loader, but I have no choice since script-loader doesn't have nodejs compatibility anymore.
Help much appreciated, thank you!