ealvarez-treeshakecss
v0.0.1
Published
Tool to tree-shake unused CSS
Downloads
4
Readme
ealvarez-treeshakecss
CLI Tool to tree-shake unused CSS.
Installation
> npm install ealvarez-treeshakecss
Usage
| Arg | Description | Example |
| --- | --- | --- |
| css
| CSS file or folder | --css build/css/styles.css
or --css build/css/
|
| content
| All other files but CSS | --content build/Button.js
or --content build/
|
| safelist
| Comma separated CSS class list that will not be deleted | elevation-2,elevation-3
|
Full usage example:
ealvarez-treeshakecss --css build/css/styles.css --content build/ --safelist elevation-2,elevation-3