This is simple wrapper around great CSSMin library. It provides command line script for minifying css using CSSMin.
Just install it from good old RubyGems.
gem install cssmin-cli
- To minify CSS source file run following command:
cssmin -s style.css -o style.min.css
This command will read CSS from style.css
, minify css and store result to style.min.css
- To minify inline CSS, run following command:
cssmin -i 'div { border: 1px solid #ffff; margin: 0px }' -o style.min.css
Note: If you don't provide output file, output is printed to standart output
... just send me pull request. 👳♂️
- Jan Ferko julyloov@gmail.com