Created
November 18, 2013 23:49
-
-
Save polds/7537512 to your computer and use it in GitHub Desktop.
Minify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $( find "public/" -name "*.css" ! -name "*.min.css" ); | |
do | |
printf "Minifying %s... " $i | |
java -jar "./yuicompressor-2.4.8.jar" --type css -o '.css$:.css' "$i" | |
echo "Done!" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $( find "public/" -name "*.js" ! -name "*.min.js" ); | |
do | |
printf "Minifying %s... " $i | |
java -jar "./yuicompressor-2.4.8.jar" --type js -o '.js$:.js' "$i" | |
echo "Done!" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment