sindresorhus / broccoli-uncss

Remove unused CSS with UnCSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Remove unused CSS with UnCSS

License:MIT License


Languages

Language:JavaScript 89.3%Language:CSS 6.7%Language:HTML 4.0%