Skip to content

Commit 8aa30a3

Browse files
committed
Update README
1 parent eee0659 commit 8aa30a3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# rollup-plugin-purgecss
2+
[![Build Status](https://travis-ci.org/FullHuman/rollup-plugin-purgecss.svg?branch=master)](https://travis-ci.org/FullHuman/rollup-plugin-purgecss) [![CircleCi](https://circleci.com/gh/FullHuman/rollup-plugin-purgecss/tree/master.svg?style=shield)]() [![dependencies Status](https://david-dm.org/fullhuman/rollup-plugin-purgecss/status.svg)](https://david-dm.org/fullhuman/rollup-plugin-purgecss) [![devDependencies Status](https://david-dm.org/fullhuman/rollup-plugin-purgecss/dev-status.svg)](https://david-dm.org/fullhuman/rollup-plugin-purgecss?type=dev)
3+
4+
[Rollup](https://github.com/rollup/rollup) plugin to remove unused css.
5+
6+
## Install
7+
8+
```sh
9+
npm i rollup-plugin-purgecss -D
10+
```
11+
12+
## Usage
13+
14+
```js
15+
import { rollup } from 'rollup';
16+
import purgecss from 'rollup-plugin-purgecss';
17+
18+
rollup({
19+
entry: 'main.js',
20+
plugins: [
21+
purgecss({
22+
content: ["index.html"]
23+
})
24+
]
25+
});
26+
```
27+
28+
## Contributing
29+
30+
Please read [CONTRIBUTING.md](./.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
31+
32+
## Versioning
33+
34+
We use [SemVer](http://semver.org/) for versioning.
35+
36+
## License
37+
38+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

0 commit comments

Comments
 (0)