From 0beb7edbcdcd63663f1c6c83c87982797fb80b2a Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Thu, 19 Nov 2020 16:26:09 -0500 Subject: [PATCH] [#1687] Update webpack config to emit sourcemaps --- webpack/config.prod.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 + })], + }, }];