Live data from Hacker News

Csscss: a CSS redundancy analyzer that analyzes redundancy

zmoazeni.github.io

1–10 of 46 posts

Re: Csscss: a CSS redundancy analyzer that analyzes redundancy

#3

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/

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/

Re: Csscss: a CSS redundancy analyzer that analyzes redundancy

#5
post #3

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/

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

Re: Csscss: a CSS redundancy analyzer that analyzes redundancy

#8
If you're a ruby developer I strongly encourage you to check out the source code and parsing in general. This is heavily using parslet [1] to build a css parser [2]. I'm sure there are edge cases I have missed, but still the LOC for this codebase is relatively small and fairly readable.

Stay away from the RedundancyAnalyzer though. There be dragons.

[1] http://kschiess.github.io/parslet/

[2] https://github.com/zmoazeni/csscss/tree/ae2f22f4416bca35f903...

Re: Csscss: a CSS redundancy analyzer that analyzes redundancy

#10
post #5
post #3

Earlier quoted context omitted.

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?
Post reply on HN