Command-line utility to removes line breaks, comments and spaces around symbols in a CSS file.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hugo Soucy 426c1966d6 Update the README file 6 months ago
.editorconfig Do the first commit. 2 years ago
README.md Update the README file 6 months ago
cssmin Remove the require inspect 1 year ago

README.md

cssmin

Command-line utility to removes line breaks, comments and spaces around symbols in a CSS file. Without any dependency, you only need lua (>= 5.1).

Use a CSS file as argument or CSS block by stdin:

  • ./cssmin styles.css > styles.min.css
  • ./cssmin < styles.css > styles.min.css
  • cat styles.css | ./cssmin
  • echo ".red { color: red; }" | ./cssmin

To have access to cssmin from everywhere, you can create a symlink in $HOME/.local/bin/ or in /usr/local/bin/.