Has anyone setup an online copy/paste utility for Google's Closure minifier? I'm working on a project and I want to minify part of the code manually without having to setup the entire project on my own.
+17
A:
How about google's own service: http://closure-compiler.appspot.com/home
I should point out that "setting up the entire project on my own" really is not half as scary as you make it out to be :p.
I mean, it's a matter of downloading a java.jar and running it. Instructions:
- Download at http://closure-compiler.googlecode.com/files/compiler-latest.zip
- Unzip
run java command line:
java -jar compiler.jar --js script-src.js --js_output_file script-compiled.js
where <compiler.jar>
is the full location to the compiler.jar
file in the downloaded archive, script-src.js
is the full filename of the source file, and script-compiled.js
is the full filename of the result.
Roland Bouman
2010-01-08 20:57:22
+1 Awesome answer!
Doug Neiner
2010-01-08 21:09:32
This is great. Thanks so much for setting this up.
Geuis
2010-01-10 23:04:56
Geuis, I didn't set it up. Google did.
Roland Bouman
2010-01-11 01:20:23