An esbuild plugin for PurgeCSS that allows passing content (HTML/CSS) directly to the plugin configuration. Stable version 1.0.1 as of 2024. Based on the original esbuild-plugin-purgecss but with the added ability to specify content paths via plugin options, enabling tree-shaking of unused CSS during esbuild bundles. Supports glob patterns for content files. Ships TypeScript types, requires Node.js 10+, and works with esbuild v0.8+. A lightweight alternative to heavier PostCSS setups for CSS purging.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-only exports; requires "type": "module" in package.json for CJS projects. For CommonJS, use dynamic import().
CJS require returns the plugin function directly, not as named export.
Type-only import for TypeScript users; available in v1.0.0+.
Demonstrates usage with esbuild build configuration, glob content paths, and plugin installation.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.