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.
What is the Closure Compiler? The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left.
The Closure Compiler provides special checks and optimizations for code that uses the Closure Library. In addition, the Closure Compiler service can automatically include Closure Library files. Finding Your Way around Closure describes the syntax for declaring the parts of Closure that you need.
The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript.
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 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With