I am trying to figure out how to run yui compressor on an entire directory. I want to compress the directory to another directory named compressed.
Any advice?
Assuming current working directory in a terminal contains these three:
Run this command:
for i in `ls css`; do java -jar yuicompressor-2.4.2.jar -o compressed/$i css/$i; done;
Note this does not work recursively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With