From d1d8d171d5e48921d2168d5767009798d343df9b Mon Sep 17 00:00:00 2001 From: Dick Smith Date: Mon, 24 Sep 2018 11:47:27 -0400 Subject: [PATCH] fix: cache/parallel should be outside uglifyOptions https://webpack.js.org/plugins/uglifyjs-webpack-plugin/#cache https://webpack.js.org/plugins/uglifyjs-webpack-plugin/#parallel https://webpack.js.org/plugins/uglifyjs-webpack-plugin/#uglifyoptions --- templates/webpack.angular.js | 4 ++-- templates/webpack.javascript.js | 4 ++-- templates/webpack.typescript.js | 4 ++-- templates/webpack.vue.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index ecc2d48b..0208e170 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -129,9 +129,9 @@ module.exports = env => { minimize: !!uglify, minimizer: [ new UglifyJsPlugin({ + parallel: true, + cache: true, uglifyOptions: { - parallel: true, - cache: true, output: { comments: false, }, diff --git a/templates/webpack.javascript.js b/templates/webpack.javascript.js index 0349205a..bcb346d3 100644 --- a/templates/webpack.javascript.js +++ b/templates/webpack.javascript.js @@ -119,9 +119,9 @@ module.exports = env => { minimize: !!uglify, minimizer: [ new UglifyJsPlugin({ + parallel: true, + cache: true, uglifyOptions: { - parallel: true, - cache: true, output: { comments: false, }, diff --git a/templates/webpack.typescript.js b/templates/webpack.typescript.js index 4641ae7e..f1cc37aa 100644 --- a/templates/webpack.typescript.js +++ b/templates/webpack.typescript.js @@ -121,9 +121,9 @@ module.exports = env => { minimize: !!uglify, minimizer: [ new UglifyJsPlugin({ + parallel: true, + cache: true, uglifyOptions: { - parallel: true, - cache: true, output: { comments: false, }, diff --git a/templates/webpack.vue.js b/templates/webpack.vue.js index 57deb962..39203a6c 100644 --- a/templates/webpack.vue.js +++ b/templates/webpack.vue.js @@ -127,9 +127,9 @@ module.exports = env => { minimize: Boolean(production), minimizer: [ new UglifyJsPlugin({ + parallel: true, + cache: true, uglifyOptions: { - parallel: true, - cache: true, output: { comments: false, },