Instantly share code, notes, and snippets.

Embed
What would you like to do?
[cssmin] Minify css using cssminifier.com. Requires curl #web #development
#!/bin/sh
if [ -z "$1" -o ! -f "$1" ]
then
echo "you must specify a valid file" >&2
exit 1
fi
curl --post301 --post302 -s -L \
--data-urlencode input@"$1" \
http://cssminifier.com/raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment