Skip to content
Rollup plugin to remove unused css
JavaScript TypeScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
__tests__
lib
src
.eslintrc
.gitignore
.npmrc
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
package.json
rollup.config.js

README.md

rollup-plugin-purgecss

Build Status CircleCi dependencies Status devDependencies Status Codacy Badge npm license Greenkeeper badge

Rollup plugin to remove unused css.

Install

npm i rollup-plugin-purgecss -D

Usage

import { rollup } from 'rollup';
import purgecss from 'rollup-plugin-purgecss';

rollup({
    entry: 'main.js',
    plugins: [
        purgecss({
            content: ["index.html"]
        })
    ]
});

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning.

License

This project is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.