I was searching a way to minify my CSS. For those who don’t know what it is, it’s a method to win space for your CSS as it will remove all unneeded blank spaces and lines return. A lot of websites exists to minify your CSS, but if your website is not online and only running locally, you won’t be able to minimize it.

I found a little software written in Python, that makes it easy, called mincss (thanks to Peter Bengtsson for it). You will also need phantomjs to make it work (already spoke in my last posts).

How to use it ? simply run it like that :

./run.py http://mylocalwebsite/index.html

Quite easy, right ? :-)