miniblog.

← Back to all posts
13
Are there many good static analysis tools for CSS? I have website projects in both Django and Express that almost certainly have unused rules due to unused classes.

3 Comments

@wilfredh not static, but one way I've done before is to record coverage when browsing a site and using the resulting report for analysis https://developer.chrome.com/docs/devtools/coverage
I think stylelint is only checking the CSS file in isolation, no? I'm really interested in dead CSS due to the content of my page templates.