diff --git a/webpack.main.additions.js b/webpack.main.additions.js index d24cae1..74ef45a 100644 --- a/webpack.main.additions.js +++ b/webpack.main.additions.js @@ -41,18 +41,17 @@ module.exports = { optimization: { // Use `--env.minify=false` to disable the UglifyJsPlugin instance automatically injected by electron-webpack. // Otherwise it will do double-duty with this one. - minimizer: [new UglifyJsPlugin({ - cache: true, - parallel: true, - sourceMap: true, // disable this if UglifyJSPlugin takes too long and/or runs out of memory - uglifyOptions: { - compress: isProduction ? {} : false, - mangle: isProduction - } - })], - splitChunks: { - chunks: 'all' - } + minimizer: [ + new UglifyJsPlugin({ + cache: true, + parallel: true, + sourceMap: true, // disable this if UglifyJSPlugin takes too long and/or runs out of memory + uglifyOptions: { + compress: isProduction ? {} : false, + mangle: isProduction + } + }) + ] }, plugins: [ new webpack.SourceMapDevToolPlugin({ diff --git a/webpack.renderer.additions.js b/webpack.renderer.additions.js index 41ff16b..98b5c64 100644 --- a/webpack.renderer.additions.js +++ b/webpack.renderer.additions.js @@ -58,18 +58,17 @@ module.exports = { optimization: { // Use `--env.minify=false` to disable the UglifyJsPlugin instance automatically injected by electron-webpack. // Otherwise it will do double-duty with this one. - minimizer: [new UglifyJsPlugin({ - cache: true, - parallel: true, - sourceMap: false, // disable this if UglifyJSPlugin takes too long and/or runs out of memory - uglifyOptions: { - compress: isProduction ? {} : false, - mangle: isProduction - } - })], - splitChunks: { - chunks: 'all' - } + minimizer: [ + new UglifyJsPlugin({ + cache: true, + parallel: true, + sourceMap: true, // disable this if UglifyJSPlugin takes too long and/or runs out of memory + uglifyOptions: { + compress: isProduction ? {} : false, + mangle: isProduction + } + }) + ] }, plugins: [ new CopyWebpackPlugin([