Skip to content

Commit

Permalink
fix(pack): 修复未调用压缩变量方法导致编译打包报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaoju committed Dec 13, 2016
1 parent e579b6b commit fc10b01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/modules/minWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ process.on('message', function (m) {
willMangle = false;
}
var ast = jsParser.parse(content);
ast = willMangle ? jsUglify.ast_mangle(ast) : ast;
ast = jsUglify.ast_mangle(ast, willMangle);
ast = jsUglify.ast_squeeze(ast);
minifiedCode = jsUglify.gen_code(ast, true);
} else if (path.extname(assetName) === '.css') {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/minWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ process.on('message', function(m) {
willMangle = false;
}
let ast = jsParser.parse(content);
ast = willMangle ? jsUglify.ast_mangle(ast) : ast;
ast = jsUglify.ast_mangle(ast, willMangle);
ast = jsUglify.ast_squeeze(ast);
minifiedCode = jsUglify.gen_code(ast, true);
} else if (path.extname(assetName) === '.css') {
Expand Down

0 comments on commit fc10b01

Please sign in to comment.