以前はMicrosoft Ajax Minifierでjavascript圧縮してたけど、いよいよWindows10マシンが終末を迎え、普段の開発マシンMACでjavascript圧縮しなければ
なのでyuicompressorをインストール
$ brew install yuicompressor
インストールしたけどパスが通らないみたいなので検索
$ brew ls yuicompressor
/usr/local/Cellar/yuicompressor/2.4.8_1/bin/yuicompressor
/usr/local/Cellar/yuicompressor/2.4.8_1/libexec/yuicompressor-2.4.8.jar
適当な作業場所へコピー
$ cp /usr/local/Cellar/yuicompressor/2.4.8_1/libexec/yuicompressor-2.4.8.jar ~/Documents/
$ java -jar yuicompressor-2.4.8.jar remote-hand_dio.js -o remote-hand_dio.min.js
でようやく圧縮作業完了
最新の画像[もっと見る]