
PurgeCSS
Tool that removes unused CSS selectors by matching them against the markup and scripts of a project, producing smaller stylesheets.
PurgeCSS removes unused CSS selectors from a project. It analyzes the content files and the CSS files, matches the selectors in the stylesheets against the content, and removes the selectors it does not find. It can be run from a command line interface, alone or with a configuration file, or through a plugin for a build tool.
It is installed with npm as a dev dependency. The repository is a monorepo that publishes its build-tool plugins as separate packages, and the core package is the one the install guide names.
Identity
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-28: links, Maintainer, Categories
purgecss.com - 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/FullHuman/purgecss - 2026-10-28: links, Install with
raw.githubusercontent.com/FullHuman/purgecss/main/README.md - 2026-10-28: Runs as, Install with
purgecss.com/CLI.html - 2026-10-28: License
registry.npmjs.org/purgecss/latest - 2026-10-28: License
raw.githubusercontent.com/FullHuman/purgecss/main/LICENSE - 2026-10-28: First release
registry.npmjs.org/purgecss - 2026-10-28: Current major version, Last release
api.github.com/repos/FullHuman/purgecss/releases - 2026-10-28: Contributors
api.github.com/repos/FullHuman/purgecss/contributors - 2026-10-28: npm downloads a week
api.npmjs.org/downloads/range/2026-09-28:2026-10-04/purgecss - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/purgecss