Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Unused CSS Selectors other than 'Dust Me Selectors'? [closed]

I would like to remove all unused CSS selectors from a common CSS file. While the Firefox extension "Dust Me Selectors" works well, it only works per page. It reports unused selectors for a page but some could be used on other pages.

Is there a tool which can go through a folder, scan all the files and bring up a list of selectors which are not used anywhere?

like image 677
Abdu Avatar asked Feb 18 '09 23:02

Abdu


2 Answers

I'm not sure why you can't use Dust Me Selectors, you can right-click on the symbol and select "Spider Sitemap" to do an entire website at once.

like image 90
Dan Lew Avatar answered Nov 14 '22 19:11

Dan Lew


It appears to me that Dust-Me doesn't really "spider", to the extent that it only follows the links it is given in the site map; it doesn't continue by following the next level of links contained in those pages. So you site map has to be complete. I also have a concern that Dust-Me is only concerned with unused selectors in the HTML. I'm working on a project where some selectors in the CSS are used in Javascript, but are not mentioned directly in the HTML.

like image 35
Tom Avatar answered Nov 14 '22 19:11

Tom