From 3f3bb950730e0ea8d959320677a230f79a546be5 Mon Sep 17 00:00:00 2001 From: booo Date: Thu, 2 Feb 2012 11:26:36 +0100 Subject: [PATCH 1/2] Revert "Optimize javascript minification, slight increase of file size, but massive performance improvement" This reverts commit b32f883a9da5216300113a1f81fbd67fb793e7f1. --- node/utils/Minify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/node/utils/Minify.js b/node/utils/Minify.js index d9623d7e5..98774d195 100644 --- a/node/utils/Minify.js +++ b/node/utils/Minify.js @@ -326,6 +326,7 @@ function compressJS(values) var complete = values.join("\n"); var ast = jsp.parse(complete); // parse code and get the initial AST ast = pro.ast_mangle(ast); // get a new AST with mangled names + ast = pro.ast_squeeze(ast); // get an AST with compression optimizations return pro.gen_code(ast); // compressed code here } From fc0cbdb55ccb9e5c5662772b9fe375d8f7071d76 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Thu, 2 Feb 2012 12:24:13 +0100 Subject: [PATCH 2/2] Updated uglify-js, that might fixes #389 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ec6936975..d91725d53 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "async" : "0.1.15", "express" : "2.5.0", "clean-css" : "0.2.4", - "uglify-js" : "1.1.1", + "uglify-js" : "1.2.5", "formidable" : "1.0.7", "log4js" : "0.4.1", "jsdom-nocontextifiy" : "0.2.10",