Skip to content

Commit

Permalink
Update to latest uglify lib
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed May 29, 2013
1 parent c540d71 commit 66f6f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions bin/handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,7 @@ if (!argv.simple) {
output = output.join('');

if (argv.min) {
var ast = uglify.parser.parse(output);
ast = uglify.uglify.ast_mangle(ast);
ast = uglify.uglify.ast_squeeze(ast);
output = uglify.uglify.gen_code(ast);
output = uglify.minify(output, {fromString: true}).code;
}

if (argv.output) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"optimist": "~0.3",
"uglify-js": "~1.2"
"uglify-js": "~2.3"
},
"devDependencies": {
"benchmark": "~1.0",
Expand Down

0 comments on commit 66f6f94

Please sign in to comment.