FindSoftware

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

Status
Active
Maintainer
Full Human LTD1
First release
20177

Rendering and deploy

Runs as
Dev only4
Install with
npm install purgecss --save-dev34

Releases

Current major version
88
Last release
2026-01-248

Adoption

GitHub stars
8,0532
npm downloads a week
1,540,29010
Contributors
859
Dependent repositories
169,17911
Dependent packages
29411

Why these figures do not compare

Sources

  1. 2026-10-28: links, Maintainer, Categories
    purgecss.com
  2. 2026-10-28: links, Written in, GitHub stars
    api.github.com/repos/FullHuman/purgecss
  3. 2026-10-28: links, Install with
    raw.githubusercontent.com/FullHuman/purgecss/main/README.md
  4. 2026-10-28: Runs as, Install with
    purgecss.com/CLI.html
  5. 2026-10-28: License
    registry.npmjs.org/purgecss/latest
  6. 2026-10-28: License
    raw.githubusercontent.com/FullHuman/purgecss/main/LICENSE
  7. 2026-10-28: First release
    registry.npmjs.org/purgecss
  8. 2026-10-28: Current major version, Last release
    api.github.com/repos/FullHuman/purgecss/releases
  9. 2026-10-28: Contributors
    api.github.com/repos/FullHuman/purgecss/contributors
  10. 2026-10-28: npm downloads a week
    api.npmjs.org/downloads/range/2026-09-28:2026-10-04/purgecss
  11. 2026-10-28: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/purgecss

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON