Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

broccoli-uncss

sindresorhus8MITdeprecated3.0.0

Deprecated. Broccoli is no longer maintained.

Remove unused CSS with UnCSS

broccoli-plugin, minimize, html, css, min, minify, optimize, compress, redundant, moot, remove

readme

broccoli-uncss

Remove unused CSS with UnCSS

Issues with the output should be reported on the UnCSS issue tracker.

Install

npm install --save-dev broccoli-uncss

Usage

const UnCSS = require('broccoli-uncss');
tree = new UnCSS(tree, {html: ['index.html']});

API

UnCSS(tree, [options])

options

See the UnCSS options, except for raw.

html

Required
Type: Array

HTML files to use when matching what CSS selectors to filter out.

License

MIT © Sindre Sorhus