diff --git a/rust/onepass/README.md b/rust/onepass/README.md new file mode 100644 index 0000000..ddc26e7 --- /dev/null +++ b/rust/onepass/README.md @@ -0,0 +1,28 @@ +# minify-html-onepass + +An HTML minifier that provides the functionality of [minify-html](https://github.com/wilsonzlin/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. + +- [in.wilsonl.minifyhtmlonepass](https://search.maven.org/artifact/in.wilsonl.minifyhtmlonepass/minify-html-onepass) +- [@minify-html/onepass](https://www.npmjs.com/package/@minify-html/onepass) +- [minify-html-onepass](https://pypi.org/project/minify-html-onepass) +- [minify_html_onepass](https://rubygems.org/gems/minify_html_onepass) +- [minify-html-onepass](https://crates.io/crates/minify-html-onepass) + +## Parsing + +In addition to the [minify-html rules](https://github.com/wilsonzlin/minify-html/blob/master/notes/Parsing.md), the onepass variant has additional requirements: + +- Opening tags must not be omitted. +- Invalid closing tags are not allowed. diff --git a/version b/version index 3c5abdd..f06fb9f 100755 --- a/version +++ b/version @@ -83,7 +83,7 @@ for (const f of ['README.md']) { replaceInFile(f, /(wilsonl\.in\/minify-html\/bin\/)\d+\.\d+\.\d+/g, `$1${NEW_VERSION}`); } -for (const f of ['README.md', 'bench/README.md']) { +for (const f of ['README.md', 'bench/README.md', 'rust/onepass/README.md']) { replaceInFile(f, /(wilsonl\.in\/minify-html\/bench\/)\d+\.\d+\.\d+/g, `$1${NEW_VERSION}`); }