Download Latest Version v8.0.0 source code.tar.gz (915.6 kB)
Email in envelope

Get an email when there's a new version of PurgeCSS

Home / v8.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-01-24 2.1 kB
v8.0.0 source code.tar.gz 2026-01-24 915.6 kB
v8.0.0 source code.zip 2026-01-24 1.1 MB
Totals: 3 Items   2.0 MB 1

BREAKING CHANGES

  • Revert the changes from v7.0.2 that modified the import of the PostCSS plugin. This was causing issues (see #1295). The PostCSS plugin should now be imported via a default import:

    :::ts import purgeCSSPlugin from '@fullhuman/postcss-purgecss';

Features

  • feat: add --preserve-paths option to CLI for maintaining folder hierarchy (aa5ac9d), closes #377

Bug fixes

  • fix: for code scanning alert no. 5: Incomplete multi-character sanitization (#1403) (3f39411), closes #1403
  • fix: enhance setOptions to support both ES modules and CommonJS config exports (4ad48c4), closes #1340
  • fix: fix glob expression illegal operations on directories (#1308) (b27293f), closes #1308 #1266
  • fix: update import statements for purgeCSSPlugin in documentation and source files (e5cbce2), closes #1295
  • fix(#995): preserve relative paths in source maps (4f6c4d9), closes #995
  • fix: enhance keyframes handling to preserve animations referenced via CSS variables (076c027), closes #478

New Contributors

Full Changelog: https://github.com/FullHuman/purgecss/compare/v7.0.2...v8.0.0

Source: README.md, updated 2026-01-24