diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-02-08 09:47:01 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-08 13:52:13 -0800 |
commit | 4234ac53e26675492d39504a73a5672c24bbda97 (patch) | |
tree | e4ebf9f5076633e61b57b0ca80c10bff35e9f4bb /tools/js2c.py | |
parent | a38607605c084b6ecb38ee1315aa3f1ae40902ab (diff) | |
download | node-new-4234ac53e26675492d39504a73a5672c24bbda97.tar.gz |
Use Google's jsmin.py so that Node can be used for evil
Diffstat (limited to 'tools/js2c.py')
-rwxr-xr-x | tools/js2c.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/js2c.py b/tools/js2c.py index 312626101b..fb38ece99b 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -49,7 +49,8 @@ def CompressScript(lines, do_jsmin): # If we're not expecting this code to be user visible, we can run it through # a more aggressive minifier. if do_jsmin: - return jsmin.jsmin(lines) + minifier = JavaScriptMinifier() + return minifier.JSMinify(lines) # Remove stuff from the source that we don't want to appear when # people print the source code using Function.prototype.toString(). |