• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FullHuman / purgecss / 42087237968
95%

Build:
DEFAULT BRANCH: main
Ran 05 Nov 2026 06:46PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Nov 2026 06:45PM UTC coverage: 94.584% (+0.02%) from 94.566%
42087237968

push

github

web-flow
fix(purgecss-webpack-plugin): compare the only option with the chunk names (#1526)

The plugin filtered the CSS assets to purge with `name.includes(only)` on the emitted asset path, so `only: ["style"]` also purged `style_print.css`, or every asset under a `style/` folder, while the README and docs describe `only` as chunk names. Compare `only` with `chunk.name` instead (exact match, for an entrypoint its key in `entry`) and skip the chunks that are not listed; the asset filter now only checks `chunk.files.has(name)`. Chunks without a name are never matched by `only`.

Behaviour change: a configuration that relied on the substring match against the path, such as `only: ["css/main"]` or `only: ["main.css"]`, no longer purges anything. It fails safe (the CSS is kept), and the changeset is a minor change that says to list the chunk names instead. The README and the webpack docs (English and French) gain a sentence saying the names are compared with chunk names, not file names.

New webpack test case `only-chunk-name`: entries `style` and `style_hello_world` with `only: ["style"]`; `style.css` is purged and `style_hello_world.css` is left untouched. The case fails on the previous code.

Closes #881

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

570 of 631 branches covered (90.33%)

Branch coverage included in aggregate %.

600 of 606 relevant lines covered (99.01%)

10124.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42087237968.1 05 Nov 2026 06:46PM UTC 17
92.49
GitHub Action Run
Source Files on build 42087237968
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42087237968
  • 3fe20bd1 on github
  • Prev Build on main (#42086956598)
  • Next Build on main (#42217429076)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc