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.
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.
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:
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 thecompiler.jar
file in the downloaded archive,script-src.js
is the full filename of the source file, andscript-compiled.js
is the full filename of the result.Google offers the Closure Compiler via REST API, which you can invoke from a shell
https://developers.google.com/closure/compiler/docs/gettingstarted_api