Finds out possibly unused class selectors (.my-class
) and id selectors (#my-element
) by statically analyzing the source code that generates HTML.
Currently Erb and Haml are supported.
- unused-classes: a CLI tool to enumerate used classes and ids.
- stylelint-unused-classes: a stylelint plugin to detect possible unused classes and ids.