3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CSSやJavascriptをyuicompressorで圧縮しよう!

Last updated at Posted at 2013-03-21

ソースディレクトリへ移動

cd /usr/local/src/

yuicompressor用ディレクトリ作成

mkdir yuicompressor

ディレクトリ移動

cd yuicompressor

git Repositoryをclone

git clone git@github.com:yui/yuicompressor.git

lib以下にコピー(しなくても良い、しない場合は以下の手順でパスを直接に変更する必要がある)

ln -s /usr/local/src/yuicompressor/yuicompressor/
build/yuicompressor-2.4.8pre.jar /usr/local/lib/yuicompressor.jar

圧縮してみよう

java -jar /usr/local/lib/yuicompressor.jar
 aaa.css -o aaa.min.css --charset utf-8

複数ファイルを纏めて圧縮してみよう。

java -jar /usr/local/lib/yuicompressor.jar
 aaa.css bbb.css ccc.css -o mix.min.css --charset utf-8
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?