diff --git a/webpack/config.prod.js b/webpack/config.prod.js index 223a7f0c70..22860bf5f9 100644 --- a/webpack/config.prod.js +++ b/webpack/config.prod.js @@ -141,7 +141,11 @@ module.exports = [{ ] }, optimization: { - minimizer: [new TerserJSPlugin({}), new OptimizeCSSAssetsPlugin({})], + minimize: true, + minimizer: [new TerserJSPlugin({ + sourceMap: true, + parallel: true + }), new OptimizeCSSAssetsPlugin()], }, plugins: [ new ManifestPlugin({ @@ -165,6 +169,7 @@ module.exports = [{ ] }, target: 'web', + devtool: 'source-map', mode: 'production', output: { path: path.resolve(__dirname, '../dist/static'), @@ -189,5 +194,12 @@ module.exports = [{ } } ] - } + }, + optimization: { + minimize: true, + minimizer: [new TerserJSPlugin({ + sourceMap: true, + parallel: true + })], + }, }];