summaryrefslogtreecommitdiff
path: root/tools/js2c.py
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-02-08 09:47:01 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-02-08 13:52:13 -0800
commit4234ac53e26675492d39504a73a5672c24bbda97 (patch)
treee4ebf9f5076633e61b57b0ca80c10bff35e9f4bb /tools/js2c.py
parenta38607605c084b6ecb38ee1315aa3f1ae40902ab (diff)
downloadnode-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-xtools/js2c.py3
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().