UnCSS will parse a CSS file or a collection of CSS files against a Web page.
It will then detect which CSS rules are actively used to style the aforementioned page and remove unused rules from the stylesheet.
The cleansing operation can be performed on the original CSS files, or the optimized CSS can be written to a new file altogether.
UnCSS can be used from the Node.js command-line or programmatically as a regular JS library.
Support is included for filtering the CSS content by media query, ignoring certain CSS selectors, ignoring certain CSS files, and custom locations of CSS files.
UnCSS will also handle timeouted requests for a CSS file, and also comes with a small reporting/debugging toolkit.
What is new in this release:
- Fixed an old bug with the CSS module.
What is new in version 0.12.0:
- Fixed an old bug with the CSS module.
What is new in version 0.10.0:
- CSS "ignore" comments now supported.
- Many correctness / stylistic fixes.
What is new in version 0.9.0:
- Ability to parse array of raw HTML.
- CSS keyframes support.
What is new in version 0.7.4:
- First release.
Requirements:
- Node.js 0.10 or higher
Comments not found