From 4e35c82f94b356978c1c3bb1c7cbeb047e034675 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 18 Nov 2018 09:07:39 -0800 Subject: [PATCH] perf(terser): remove console logs in production (#658) --- webpack.client.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.client.config.js b/webpack.client.config.js index d0d1883a..a18c8380 100644 --- a/webpack.client.config.js +++ b/webpack.client.config.js @@ -60,7 +60,9 @@ module.exports = { terserOptions: { ecma: 6, mangle: true, - compress: true, + compress: { + pure_funcs: ['console.log'] + }, output: { comments: false },