zmoazeni / csscss

A CSS redundancy analyzer that analyzes redundancy.
http://zmoazeni.github.io/csscss/
MIT License
2.92k stars 151 forks source link

Find unused CSS #14

Closed i-arindam closed 11 years ago

i-arindam commented 11 years ago

IT will be a great add-on to be able to specify an HTML and a CSS, and allow the script to tell which bits of CSS are unused in that HTML.

Of course it cannot handle partials in rails, or other framework specific use-cases.

But one can still live with the entire source of the result file and the included CSS file/files

zmoazeni commented 11 years ago

First, thanks for the feedback.This has come up before but I don't think it's going to be in the scope of csscss.

FIrstly, you need to collect data from multiple pages to know what is all being used.

Secondly, you need to execute javascript because some classes only come from user interaction.

I think the scope of csscss will be simply source code analysis.

Melindrea commented 11 years ago

may I suggest: https://github.com/geuis/helium-css (I haven't tried it yet, but I thought of this issue when I saw the project)

i-arindam commented 11 years ago

@Melindrea Thank you. Looks good at first glance. Will definitely try it when I have some time.