diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index f6cdff9b..1701216b 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -164,6 +164,7 @@ module.exports = env => { new UglifyJsPlugin({ parallel: true, cache: true, + sourceMap: !!sourceMap, uglifyOptions: { output: { comments: false, diff --git a/templates/webpack.javascript.js b/templates/webpack.javascript.js index a76f617d..00bbc37f 100644 --- a/templates/webpack.javascript.js +++ b/templates/webpack.javascript.js @@ -125,6 +125,7 @@ module.exports = env => { new UglifyJsPlugin({ parallel: true, cache: true, + sourceMap: !!sourceMap, uglifyOptions: { output: { comments: false, diff --git a/templates/webpack.typescript.js b/templates/webpack.typescript.js index ab026e40..2b12c3a3 100644 --- a/templates/webpack.typescript.js +++ b/templates/webpack.typescript.js @@ -127,6 +127,7 @@ module.exports = env => { new UglifyJsPlugin({ parallel: true, cache: true, + sourceMap: !!sourceMap, uglifyOptions: { output: { comments: false, diff --git a/templates/webpack.vue.js b/templates/webpack.vue.js index 323c1698..1f3c36da 100644 --- a/templates/webpack.vue.js +++ b/templates/webpack.vue.js @@ -138,6 +138,7 @@ module.exports = env => { new UglifyJsPlugin({ parallel: true, cache: true, + sourceMap: !!sourceMap, uglifyOptions: { output: { comments: false,