htmlnano
Modular HTML minifier, built on top of the PostHTML. Inspired by cssnano.
To switch to the optional fork of uncss, apply uncss-fork.patch.
Reasons you may want to do this are: uncss uses outdated dependencies with security issues
Reasons you may want to avoid this are: long term support, stability
Benchmark
| Website | Source (KB) | html-minifier-terser@5.1.1 | htmlnano@1.0.0 |
|---|---|---|---|
| stackoverflow.blog | 95 | 87 | 82 |
| github.com | 210 | 183 | 171 |
| en.wikipedia.org | 78 | 72 | 72 |
| npmjs.com | 41 | 38 | 36 |
| Avg. minify rate | 0% | 9% | 13% |