From 15f33dc88d5f27c9a2a03c80c141196cba50e050 Mon Sep 17 00:00:00 2001 From: Christopher Henn Date: Fri, 2 Aug 2019 14:19:47 -0700 Subject: [PATCH] fix(ui): enable source maps in production --- ui/webpack.prod.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/webpack.prod.ts b/ui/webpack.prod.ts index c55ff7ce68..d37e173eb8 100644 --- a/ui/webpack.prod.ts +++ b/ui/webpack.prod.ts @@ -7,7 +7,10 @@ module.exports = merge(common, { mode: 'production', devtool: 'source-map', optimization: { - minimizer: [new TerserJSPlugin({}), new OptimizeCSSAssetsPlugin({})], + minimizer: [ + new TerserJSPlugin({sourceMap: true}), + new OptimizeCSSAssetsPlugin({}), + ], splitChunks: { chunks: 'all', },