Remove unused CSS with UnCSS
JavaScript CSS HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fixture
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
brocfile.js
index.js
license
package.json
readme.md
test.js

readme.md

broccoli-uncss Build Status

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