CSS Redundancy checker

Kom over et fantastisk lite verktøy (må innrømme at jeg ikke har prøvd det ennå, men…) som rapporterer hvilke CSS-selektorer du ikke bruker i HTMLen din.

A simple script that, given a CSS stylesheet and either a .txt file listing URLs of HTML files, or a directory of HTML files, will iterate over them all and list the CSS statements in the stylesheet which are never called in the HTML.
Basically, it helps you keep your CSS files relevant and compact. And it’s reasonably accurate.
Usage
css-redundancy-checker.rb cssfile directory of html files OR .txt file listing urls to use]

Hentes her

Andre tekster