fullhuman/purgecss

Remove unused CSS

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 41 minutes ago
Added to GitGenius on September 8th, 2026
Created on July 1st, 2017
Open Issues & Pull Requests: 68 (+0)
GitHub issues: Enabled
Number of forks: 242
Total Stargazers: 8,048 (+0)
Total Subscribers: 55 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 66.7 days
Mean response time: 161.8 days
90th percentile: 631.8 days
Tracked items: 49

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 1% of issues opened in the past year have been closed. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 20
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 807 days
Stale 30+ days: 19
Stale 90+ days: 14

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (38)
  • Feature request (11)
  • Stale (11)
  • coming soon (3)
  • help wanted (3)
  • documentation (2)
  • CLI (1)
  • Need more information (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

PurgeCSS is a CSS optimization tool that removes unused styles from your stylesheets.

The tool solves the problem of bloated CSS files when using frameworks like Bootstrap or Foundation, where you typically use only a fraction of the available styles. PurgeCSS analyzes your content files and CSS files, then matches selectors in your CSS against those actually used in your content. It removes any unused selectors, resulting in significantly smaller CSS files that are delivered to users.

The tool suits projects using CSS frameworks or large stylesheets where unused styles accumulate. It integrates into common build workflows through plugins for PostCSS, Webpack, Gulp, and Grunt, and includes framework-specific guides for Vue.js, React, Next.js, Nuxt.js, and other popular tools. An online version is available for testing before integration. The documentation includes configuration options, a command-line interface, a programmatic API, safelisting capabilities for protecting styles from removal, and custom extractors for matching selectors in non-standard file formats.

The project is organized as a monorepo using Lerna, publishing multiple packages to npm from a single codebase. Development activity shows consistent engagement with the codebase, regular updates to address issues and maintain compatibility with evolving build tools and frameworks, and active documentation maintenance reflecting the tool's integration points across the ecosystem.