2015-05-05 09:57:16 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# minify all .css-files
|
|
|
|
ls -1 *.css|grep -Ev "min.css$" | while read cssfile; do
|
|
|
|
newfile="${cssfile%.*}.min.css"
|
|
|
|
echo "$cssfile --> $newfile"
|
|
|
|
curl -X POST -s --data-urlencode "input@$cssfile" http://cssminifier.com/raw > $newfile
|
|
|
|
done
|
|
|
|
|
|
|
|
# merge all into one single file
|
2015-05-05 10:08:51 +02:00
|
|
|
rm -f styles.min.css
|
|
|
|
cat *.min.css > styles.min.css
|