Project

cssmin-cli

0.0
No commit activity in last 3 years
No release in over 3 years
Command line tool for minifying CSS. Based on CSSMin library.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.3
~> 10.3

Runtime

~> 1.0
~> 0.3
 Project Readme

CSSMin - CLI

This is simple wrapper around great CSSMin library. It provides command line script for minifying css using CSSMin.

Instalation

Just install it from good old RubyGems.

gem install cssmin-cli

Usage

  1. 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

  1. 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

To Contribute... 👍

... just send me pull request. 👳‍♂️

Authors