[Javascript] Installing YUI compressor

Hassan Schroeder hassan at webtuitive.com
Sun Nov 23 00:18:39 CST 2008

David Hucklesby wrote:

> Old hands will find this amusing. I downloaded and unzipped the YUI Compressor. There's a
> mess of files in there, and I have no clue as to what goes where???
> This is my first Mac, and I'm still looking for something like environment variables to set
> the path to the myriad folders. But perhaps I don't need them all?
> There are clear instructions for using the tool from Terminal, but after searching for an
> hour re. installing it, I found nothing.

All you need, really, is the main jar file, and it doesn't matter
where it is -- no "installation" required.

Just invoke it as the "using" page indicates, e.g.

java -jar ~/mylib/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar \
  some_bloated_js_file.js > so_svelte.js


Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-621-3445   === http://webtuitive.com

                           dream.  code.

More information about the Javascript mailing list