minify-html/rust/onepass
Wilson Lin 5cef4219e6 Fix [style] and script[type] minification; optimise attr ordering; refactor bench runners 2021-08-09 22:20:33 +10:00
..
src Formatting 2021-08-09 19:56:37 +10:00
.gitignore Restructure Rust project 2021-08-08 17:40:42 +10:00
Cargo.toml Fix [style] and script[type] minification; optimise attr ordering; refactor bench runners 2021-08-09 22:20:33 +10:00
README.md 0.6.2 2021-08-09 20:45:28 +10:00

README.md

minify-html-onepass

An HTML minifier that provides the functionality of minify-html with much more performance, but with stricter parsing and less configurability.

  • Uses the same advanced minification strategy.
  • Minifies in one pass with zero memory allocations.
  • Outputs in place; no copy or buffer required.

Performance

Chart showing speed of HTML minifiers

Usage

The API is different compared to minify-html; refer to per-package documentation for more details.

Parsing

In addition to the minify-html rules, the onepass variant has additional requirements:

  • Opening tags must not be omitted.
  • Invalid closing tags are not allowed.