Package Exports
- checkcss
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (checkcss) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
csscheck
Utility method for warning any time the class
attribute of an element references undefined / non-existent CSS class.
In addition to doing a sweep of the DOM at the time cssCheck()
is called, this sets up a MutationObserver
to continuously monitor DOM changes, so is well-suited for dynamic webapps.
(Note: The monitoring logic is pretty efficient but is probably not something you want to be running in production.)
Installation
npm i csscheck
Usage
import cssCheck, { cssMonitor } from 'csscheck';
// Check current DOM
cssCheck();
// ... and setup monitor to check DOM as it changes
cssMonitor();