Hacker News new | past | comments | ask | show | jobs | submit login

I am not a fan of css minimizers.

I'm more a fan of writing compact, clean, logical css in the first place.

A couple months ago I worked on a project and re-wrote a 129k minified css file someone created as a clean un-minified 12k css file that had 100% of the original functionality plus some additional UI improvements.

You can only get these improvements if you understand what you are writing and stop using sass to write bloated files.




The two things aren’t exclusive. What reason do you have not to minify your compact, clean, logical CSS?


It sounds like you don't understand what a minifier is.

A minifier takes your css code and removes the noise from it. It does so by removing whitespace, comments, duplicate rules and redundant properties.

What it sounds like you're really complaining about is using sass (which has a compressed output), because it removes a layer of abstraction and makes it easy to shoot yourself in the foot. This is true of almost anything and everything.


> I'm more a fan of writing compact, clean, logical css in the first place.

Does your CSS completely lack whitespace and comments?

If not, minification still has its use.


Can't do that with Bootstrap and the like...


99% this




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: