문제

How would I add the YUI compressor into this

@echo off
echo Combining.....
type lib\css\header.css>>stylesheet.css
type lib\css\footer.css>>stylesheet.css
echo Finished!
PAUSE

I would like it in simple terms so that I can understand how it works please, I've downloaded the latest build of YUI

도움이 되었습니까?

해결책

The command for use YUI is :

java -jar yuicompressor.jar original.css -o original.min.css

Try this but specify the path of yuicompressor.jar :

@echo off
echo Combining.....
type lib\css\header.css>>stylesheet.css
type lib\css\footer.css>>stylesheet.css
java -jar /path/to/yuicompressor.jar stylesheet.css -o stylesheet.min.css
echo Finished!
PAUSE
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top