
Remove unused CSS.
PurgeCSS reads your content files, matches the selectors they use, and removes the rest of your CSS.
Reads your content
Extractors find the selectors used in your HTML, templates and JavaScript. Only the CSS that matches them is kept.
Fits your build
Run it from the command line, the JavaScript API, or plugins for PostCSS, webpack, Gulp, Grunt and Gatsby.
Keeps what you choose
Safelist selectors by name or pattern, and write your own extractor for any file type.
