From dca12b6467429a3a56ca16098a5dadf14821eea1 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 16 Mar 2019 01:52:51 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3?= =?UTF-8?q?=D1=83=D1=80=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BB=20TerserPlugin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.prod.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build/webpack.prod.config.js b/build/webpack.prod.config.js index cfc04abc..c8472dc2 100644 --- a/build/webpack.prod.config.js +++ b/build/webpack.prod.config.js @@ -32,7 +32,15 @@ module.exports = merge(baseWpConfig, { }, optimization: { minimizer: [ - new TerserPlugin(), + new TerserPlugin({ + cache: true, + parallel: true, + terserOptions: { + output: { + comments: false, + }, + }, + }), new OptimizeCSSAssetsPlugin() ] },