Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  8] [ 7]  / answers: 1 / hits: 25820  / 15 Years ago, fri, january 8, 2010, 12:00:00

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.


More From » minify

 Answers
54

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:




  1. Download at http://closure-compiler.googlecode.com/files/compiler-latest.zip

  2. Unzip

  3. 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.


[#97884] Wednesday, January 6, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kinsley

Total Points: 352
Total Questions: 84
Total Answers: 94

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
;