Skip to content

sindresorhus/broccoli-uncss

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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