From 578cb4d919ae3d7714179f1d44f493978cd04b78 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 6 Jun 2021 22:23:55 +0200 Subject: [PATCH 1/2] Enable SplitChunksPlugin in Webpack production config Signed-off-by: David Mehren --- webpack.prod.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack.prod.js b/webpack.prod.js index 92ee1578..884bc6fe 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -18,7 +18,10 @@ module.exports = [ new ESBuildMinifyPlugin({ target: 'es2015' }) - ] + ], + splitChunks: { + chunks: 'all' + } } }), merge(htmlexport, { From 38f73d2872ec595660ff9bc1f254864d6681f90a Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 6 Jun 2021 22:24:22 +0200 Subject: [PATCH 2/2] Enable source-maps in Webpack production config Signed-off-by: David Mehren --- webpack.prod.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webpack.prod.js b/webpack.prod.js index 884bc6fe..ca698172 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -22,7 +22,8 @@ module.exports = [ splitChunks: { chunks: 'all' } - } + }, + devtool: 'source-map' }), merge(htmlexport, { mode: 'production',