CSS Sanity

Cool CSS minifier written in bash!

How does it works?

First, CSS Sanity will use the given file name to determine where to lookup for file to minify. Then, it'll use cat to merge files matching *.css pattern in the given file name.

After that CSS Sanity will use some tr, perl and sed commands to remove all the useless characters and save the final minified file in the location you specified!

That's simple as this!

Usage

Online version:

bash <(curl -s https://csssanity.github.io/csssanity.sh) static/styles/file.min.css

Local version:

wget https://csssanity.github.io/csssanity.sh ./csssanity.sh static/styles/file.min.css