From dc60a773ce580a309bcfe71f034800f8d1ad61aa Mon Sep 17 00:00:00 2001 From: Dolphin_Wood Date: Mon, 13 May 2019 19:29:58 +0900 Subject: [PATCH] fix(scripts): remove invalid options from uglifyjs --- scripts/webpack.prod.js | 6 +----- scripts/webpack.prod.plugins.js | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/webpack.prod.js b/scripts/webpack.prod.js index 793daea3..7e553275 100644 --- a/scripts/webpack.prod.js +++ b/scripts/webpack.prod.js @@ -20,11 +20,7 @@ module.exports = merge(baseConfig, { libraryExport: 'default', }, plugins: [ - new UglifyJSPlugin({ - output: { - comments: false, - }, - }), + new UglifyJSPlugin(), new webpack.optimize.ModuleConcatenationPlugin(), ], }); diff --git a/scripts/webpack.prod.plugins.js b/scripts/webpack.prod.plugins.js index 03e70885..9f8819e0 100644 --- a/scripts/webpack.prod.plugins.js +++ b/scripts/webpack.prod.plugins.js @@ -28,11 +28,7 @@ module.exports = merge(baseConfig, { }, }, plugins: [ - new UglifyJSPlugin({ - output: { - comments: false, - }, - }), + new UglifyJSPlugin(), new webpack.optimize.ModuleConcatenationPlugin(), ], });