checkcss
Detect DOM elements that reference undefined CSS classes
Installation
npm install checkcss
yarn add checkcss
Usage
import { CheckCSS } from 'checkcss';
const checkcss = new CheckCSS();
checkcss.scan().watch();
... then look for messages like this in your browser console:
Hooks
The following hooks are supported:
checkcss.onClassnameDetected = function (classname, element) {
return /^license-|^maintainer-/.test(classname) ? false : true;
};
checkcss.onUndefinedClassname = function (classname) {
};