Skip to content

csssanity/csssanity.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

Releases

No releases published

Packages

No packages published