Skip to content

Commit

Permalink
feat: 去掉 prd 环境 source-map
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaoju committed Jan 23, 2018
1 parent 84873df commit ad507d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ykit",
"version": "2.2.0",
"version": "2.2.1",
"description": "现代 JavaScript 应用构建工具",
"bin": {
"ykit": "bin/ykit"
Expand Down
2 changes: 1 addition & 1 deletion src/commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad507d5

Please sign in to comment.