diff --git a/Gruntfile.js b/Gruntfile.js index 6aef1644d7..577578c547 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 ba2a87c268..c3893a777a 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,