vite-plugin-purgecss

JSON →
library 0.2.13 ·javascript
verified Apr 27, 2026

A Vite plugin that removes unused CSS from the production build by integrating PurgeCSS. Version 0.2.13, actively maintained with occasional updates. Fork of vite-plugin-html-purgecss, it scans both HTML and JS output to find CSS class references, making it compatible with JavaScript frameworks like SvelteKit. Unlike PurgeCSS CLI, it works seamlessly within Vite's build pipeline without extra configuration. Lightweight and easy to set up, it accepts all standard PurgeCSS options including safelist for preserving dynamic classes. Supports TypeScript with bundled type definitions.

total hits 17
actors 5 distinct systems
last hit 7d ago human
GPTBot
5
MetaBot
3
Search engines
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · AO