From 0e713d9f3abc93cc5e91b524945789c9b80e066b Mon Sep 17 00:00:00 2001 From: iapyang Date: Mon, 21 Oct 2019 14:21:59 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=89=93=E5=8C=85=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gruntfile.js | 9 +++++++-- webpack/webpack.prod.js | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 6aef1644d..577578c54 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -107,7 +107,7 @@ module.exports = function (grunt) { bundleJs: { src: ["dist/core.js", "dist/fix/fix.js", "dist/base.js", "dist/case.js", "dist/widget.js", "dist/fix/fix.compact.js", "dist/router.js", "public/js/**/*.js", "public/js/index.js", "i18n/i18n.cn.js", "dist/fineui.typescript.js"], - dest: "dist/bundle.js" + dest: "dist/bundle.js", }, versionFineuiJs: { @@ -271,7 +271,12 @@ module.exports = function (grunt) { uglify: { options: { - banner: "/*! <%= pkg.name %> <%= grunt.template.today(\"yyyy-mm-dd HH:MM:ss\") %> */\n" + banner: "/*! <%= pkg.name %> <%= grunt.template.today(\"yyyy-mm-dd HH:MM:ss\") %> */\n", + mangle: false, + sourceMap: true, + compress: { + unused: false, + }, }, dist: { files: { diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index ba2a87c26..c3893a777 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -28,7 +28,7 @@ module.exports = merge.smart(common, { }), new UglifyJsPlugin({ test: /\.js(\?.*)?$/i, - parallel: 16, + parallel: true, sourceMap: true, uglifyOptions: { ie8: true,