This commit is contained in:
Wilson Lin 2021-12-14 13:50:03 +11:00
commit 04707e5e06
14 changed files with 21 additions and 21 deletions

View file

@ -19,7 +19,7 @@ A Rust HTML minifier meticulously optimised for speed and effectiveness, with bi
Comparison with [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize), run on the top web pages. [See the breakdown here.](./bench)
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.7.1/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.7.1/core/average-sizes.png">
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.7.2/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.7.2/core/average-sizes.png">
The [onepass](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass) variant is even more optimised for speed. See its [README](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass) for more details.
@ -32,11 +32,11 @@ Precompiled binaries are available for Linux, macOS, and Windows.
### Get
[Linux x64](https://wilsonl.in/minify-html/bin/0.7.1-linux-x86_64) |
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.7.1-linux-arm64) |
[macOS x64](https://wilsonl.in/minify-html/bin/0.7.1-macos-x86_64) |
[macOS ARM64](https://wilsonl.in/minify-html/bin/0.7.1-macos-arm64) |
[Windows x64](https://wilsonl.in/minify-html/bin/0.7.1-windows-x86_64.exe)
[Linux x64](https://wilsonl.in/minify-html/bin/0.7.2-linux-x86_64) |
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.7.2-linux-arm64) |
[macOS x64](https://wilsonl.in/minify-html/bin/0.7.2-macos-x86_64) |
[macOS ARM64](https://wilsonl.in/minify-html/bin/0.7.2-macos-arm64) |
[Windows x64](https://wilsonl.in/minify-html/bin/0.7.2-windows-x86_64.exe)
### Use
@ -55,7 +55,7 @@ minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /
```toml
[dependencies]
minify-html = { version = "0.7.1", features = ["js-esbuild"] }
minify-html = { version = "0.7.2", features = ["js-esbuild"] }
```
Building with the `js-esbuild` feature requires the Go compiler to be installed as well, to build the [JS and CSS minifier](https://github.com/wilsonzlin/esbuild-rs).
@ -120,7 +120,7 @@ Add as a Maven dependency:
<dependency>
<groupId>in.wilsonl.minifyhtml</groupId>
<artifactId>minify-html</artifactId>
<version>0.7.1</version>
<version>0.7.2</version>
</dependency>
```