Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 689 Bytes

File metadata and controls

21 lines (17 loc) · 689 Bytes

CSSSanity

Cool CSS minifier written in bash!

How it works?

First, CSSSanity 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 CSSSanity 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

Offline version:

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