Hacker News new | ask | show | jobs
by moonboots 4816 days ago
CSSO [1] is a tool that removes duplicate declarations during minification instead of just warning about them. It also performs more advanced structural optimizations.

[1] http://bem.info/tools/csso/

2 comments

I think the purpose of this package is more about making existing source code easier to maintain (applying DRY principals to CSS) than about browser-oriented optimization (thus purpose of CSSO.)
You could keep the csscss'ed source in version control (easy to maintain), and use csso as an automated step before deploying.
css-ratiocinator [1] is also another tool someone mentioned to me after I launched cssscss.

[1] https://github.com/begriffs/css-ratiocinator and http://www.csstrashman.com/

And rework [1] allows you to change url()'s, inline images, change vendor prefixes and more...

[1] https://github.com/visionmedia/rework

Is there something that can do all of this and remove the unused css after clicking through the site with a browser?