From ad507d588a24bf4e17a64abe72968479b0ada3cf Mon Sep 17 00:00:00 2001 From: "yuhao.ju" Date: Tue, 23 Jan 2018 19:10:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=BB=E6=8E=89=20prd=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=20source-map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/commands/pack.js | 2 +- package.json | 2 +- src/commands/pack.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/commands/pack.js b/lib/commands/pack.js index 22aac77..e95415c 100644 --- a/lib/commands/pack.js +++ b/lib/commands/pack.js @@ -186,7 +186,7 @@ exports.run = function (options) { if (opt.min) { config.output = config.output.prd; config.plugins.push(new UglifyJsPlugin({ - sourceMap: config.devtool ? true : false, + sourceMap: false, parallel: true, uglifyOptions: { ie8: true diff --git a/package.json b/package.json index 551f789..51f649c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ykit", - "version": "2.2.0", + "version": "2.2.1", "description": "现代 JavaScript 应用构建工具", "bin": { "ykit": "bin/ykit" diff --git a/src/commands/pack.js b/src/commands/pack.js index 5989ed9..779e2ad 100644 --- a/src/commands/pack.js +++ b/src/commands/pack.js @@ -115,7 +115,7 @@ exports.run = function (options) { config.output = config.output.prd; config.plugins.push( new UglifyJsPlugin({ - sourceMap: config.devtool ? true : false, + sourceMap: false, parallel: true, uglifyOptions: { ie8: true