Reputation: 1056
I have a bunch of CSS files with a bunch of classes. I know a lot are not used.
Is there a tool that will scan your site and clean up your CSS files or tell me which ones aren't used?
Upvotes: 8
Views: 1945
Reputation: 133567
This site has some nice tricks about what you need to do http://www.makeuseof.com/tag/useful-tools-to-check-clean-and-optimize-your-css-file/.
It suggests some tools like a Firefox plugin called Dust-Me selectors.. http://www.sitepoint.com/dustmeselectors/
(source: netdna-cdn.com)
Upvotes: 3
Reputation: 28125
That's a lot of different tools you're asking.
Firebug has a plugin called "CSS usage": it tells you what CSS files are used.
Then there's the CSS minifier (compresses your CSS code).
And finally, there's the CSS beautifier.
Upvotes: 0