1
0
Fork
You've already forked cssmin
0
Command-line utility to removes line breaks, comments and spaces around symbols in a CSS file.
  • Lua 100%
Find a file
2023年07月23日 18:55:32 +00:00
.editorconfig Do the first commit. 2021年11月19日 17:16:44 -05:00
cssmin Remove the require inspect 2022年03月20日 20:36:55 -04:00
README.md Update the asciinema URL 2023年07月23日 18:55:32 +00:00

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

asciicast


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