Disable webpack minification to avoid double minification with terser

This commit is contained in:
Andrii V 2025-12-12 18:31:10 +01:00
parent 5e6502f25f
commit d40c64065c
2 changed files with 5 additions and 0 deletions

1
package-lock.json generated
View file

@ -7202,6 +7202,7 @@
"integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@discoveryjs/json-ext": "^0.5.0",
"@webpack-cli/configtest": "^2.1.1",

View file

@ -31,6 +31,10 @@ let babelRCOptions = {
};
module.exports = {
mode: 'production',
optimization: {
minimize: false // Let grunt-terser handle minification to avoid double-minification
},
// Tell Webpack which file kicks off our app.
entry: {
main: path.resolve(__dirname, 'rhodecode/public/js/src/components/index.js'),