From edca90f6ccf43f213db9636df021e7c50538766c Mon Sep 17 00:00:00 2001 From: "Hung-Han (Henry) Chen" <1474479+chenhunghan@users.noreply.github.com> Date: Fri, 4 Dec 2020 19:02:41 +0800 Subject: [PATCH] Only enable minimize in production Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com> --- webpack.main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.main.ts b/webpack.main.ts index 84c6912bca..c060778073 100755 --- a/webpack.main.ts +++ b/webpack.main.ts @@ -34,6 +34,9 @@ export default function (): webpack.Configuration { externalsPresets: { node: true }, // in order to ignore all modules in node_modules folder externals: nodeExternals(), + optimization: { + minimize: isProduction, + }, module: { rules: [ {