cleaned up some mess and started the actual compressor

This commit is contained in:
Mihai Bazon
2012-08-21 15:45:05 +03:00
parent 7ae1c600a2
commit ffe58a9961
7 changed files with 315 additions and 52 deletions

View File

@@ -18,6 +18,11 @@ time_it("scope", function(){
time_it("mangle", function(){
ast.mangle_names();
});
time_it("compress", function(){
var compressor = new UglifyJS.Compressor({
});
ast = ast.squeeze(compressor);
});
time_it("generate", function(){
ast.print(stream);
});