Takazudo hamalog

programming notes. mainly about JavaScript / jQuery. [@Takazudo] [takazudo@gmail.com] Hint: alt + /

cool guy

how to use yuicompressor

2011/12/21 permalink

It is the one which minifies css and js files.

If you are a Mac user and have homebrew installed, just do

brew install yuicompressor

(If not, fetch .jar file from the link above.)

Then, do

yuicompressor foo.js -o foo.min.js

Basially, that’s all.

If you want specify encoding, do

yuicompressor foo.js -o foo.min.js --charset shift_jis

Very easy and effective.

blog comments powered by Disqus

  1. hamalogの投稿です