Wyatt
2010-02-22, 21:07
I've been experimenting with LESS CSS (http://lesscss.org) this evening, and I really like it. The syntax is smart, and I can already see how this could make a huge impact on my Web design workflow. I already code all my stylesheets by hand, and this seems like a natural evolution for my design process.
There's one glaring problem, though: The resulting CSS is pretty bloated. CSS Compressor (http://www.csscompressor.com/) seems to do a pretty good job cleaning it up, but a Web-based compressor/minifier seems like an unnecessary extra step in my workflow. Yes, I know I can just skip this step until the end, but since I'm compiling the .less file from terminal anyway, it would be great if I could build a script that both compiled the .less file and compressed the resulting .css file.
Do any of you know of a command-line CSS minifier that I could use as a component to a script? Of course, I'll be happy to share my final script. :)
[edit] Something PHP- or Ruby-based would be fine, too. Anything I can run in Terminal works for me. :)
There's one glaring problem, though: The resulting CSS is pretty bloated. CSS Compressor (http://www.csscompressor.com/) seems to do a pretty good job cleaning it up, but a Web-based compressor/minifier seems like an unnecessary extra step in my workflow. Yes, I know I can just skip this step until the end, but since I'm compiling the .less file from terminal anyway, it would be great if I could build a script that both compiled the .less file and compressed the resulting .css file.
Do any of you know of a command-line CSS minifier that I could use as a component to a script? Of course, I'll be happy to share my final script. :)
[edit] Something PHP- or Ruby-based would be fine, too. Anything I can run in Terminal works for me. :)