Disable webpack minification to avoid double minification with terser
This commit is contained in:
parent
5e6502f25f
commit
d40c64065c
2 changed files with 5 additions and 0 deletions
1
package-lock.json
generated
1
package-lock.json
generated
|
|
@ -7202,6 +7202,7 @@
|
||||||
"integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==",
|
"integrity": "sha512-pIDJHIEI9LR0yxHXQ+Qh95k2EvXpWzZ5l+d+jIo+RdSm9MiHfzazIxwwni/p7+x4eJZuvG1AJwgC4TNQ7NRgsg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discoveryjs/json-ext": "^0.5.0",
|
"@discoveryjs/json-ext": "^0.5.0",
|
||||||
"@webpack-cli/configtest": "^2.1.1",
|
"@webpack-cli/configtest": "^2.1.1",
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,10 @@ let babelRCOptions = {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
mode: 'production',
|
||||||
|
optimization: {
|
||||||
|
minimize: false // Let grunt-terser handle minification to avoid double-minification
|
||||||
|
},
|
||||||
// Tell Webpack which file kicks off our app.
|
// Tell Webpack which file kicks off our app.
|
||||||
entry: {
|
entry: {
|
||||||
main: path.resolve(__dirname, 'rhodecode/public/js/src/components/index.js'),
|
main: path.resolve(__dirname, 'rhodecode/public/js/src/components/index.js'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue