symdiff is a very useful utility that can assist developers in optimizing their CSS code by removing classes and declarations that are not used on the actual page.
Developers only need to supply the list of classes used in the CSS file, the classes used in the rendered Web page, and an optional list of classes to ignore (if any).
The class with then compare the two lists and see what classes from the CSS files are actually found in the final page, giving a list of items that can be safely removed from the stylesheet without ruining the page's design.
Besides the core JavaScript library, symdiff also offers plugins for dealing with LESS and Sass code, and with HTML, Jade, and Handlebars templates.
Currently there's also integration with the Gulp and Grunt build systems, allowing developers to automate this task into a simple CLI command.
Requirements:
- JavaScript enabled on client side
Comments not found