See the UnCSS docs for more information.
postcss-uncss specifies UnCSS as a peerDependency, so you will have to install UnCSS as well.
npm install postcss-uncss uncss
postcss-uncss' MAJOR & MINOR version numbers correspond to UnCSS' version numbers; however, the PATCH version number may differ.
See PostCSS docs for examples for your environment.
html (Array): provide a list of html files to parse for selectors and elements. Usage of globs is allowed.
ignore (Array): provide a list of selectors that should not be removed by UnCSS. For example, styles added by user interaction with the page (hover, click), since those are not detectable by UnCSS yet. Both literal names and regex patterns are recognized. Otherwise, you can add a comment before specific selectors in your css:/* uncss:ignore */
html: 'index.html' 'about.html' 'team/*.html'ignore: '.fade'