This commit is contained in:
Wilson Lin 2022-06-22 02:32:05 +10:00
commit bfae1e0897
14 changed files with 23 additions and 23 deletions

View file

@ -23,7 +23,7 @@ View the [changelog](./CHANGELOG.md) to see the latest updates.
Comparison with [html-minifier](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.9.0/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.9.0/core/average-sizes.png">
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.9.1/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.9.1/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.
@ -36,11 +36,11 @@ Precompiled binaries are available for Linux, macOS, and Windows.
### Get
[Linux x64](https://wilsonl.in/minify-html/bin/0.9.0-linux-x86_64) |
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.9.0-linux-arm64) |
[macOS x64](https://wilsonl.in/minify-html/bin/0.9.0-macos-x86_64) |
[macOS ARM64](https://wilsonl.in/minify-html/bin/0.9.0-macos-arm64) |
[Windows x64](https://wilsonl.in/minify-html/bin/0.9.0-windows-x86_64.exe)
[Linux x64](https://wilsonl.in/minify-html/bin/0.9.1-linux-x86_64) |
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.9.1-linux-arm64) |
[macOS x64](https://wilsonl.in/minify-html/bin/0.9.1-macos-x86_64) |
[macOS ARM64](https://wilsonl.in/minify-html/bin/0.9.1-macos-arm64) |
[Windows x64](https://wilsonl.in/minify-html/bin/0.9.1-windows-x86_64.exe)
### Use
@ -59,7 +59,7 @@ minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /
```toml
[dependencies]
minify-html = { version = "0.9.0" }
minify-html = { version = "0.9.1" }
```
### Use
@ -71,14 +71,14 @@ Check out the [docs](https://docs.rs/minify-html) for API and usage examples.
<details>
<summary><img width="24" src="https://wilsonl.in/minify-html/icon/deno.png"> <strong>Deno</strong></summary>
- Package: https://wilsonl.in/minify-html/deno/0.9.0/index.js
- Package: https://wilsonl.in/minify-html/deno/0.9.1/index.js
- Binding: [WASM](https://webassembly.org/)
- Platforms: All
### Use
```ts
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.9.0/index.js";
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.9.1/index.js";
const encoder = new TextEncoder();
const decoder = new TextDecoder();
@ -143,7 +143,7 @@ Add as a Maven dependency:
<dependency>
<groupId>in.wilsonl.minifyhtml</groupId>
<artifactId>minify-html</artifactId>
<version>0.9.0</version>
<version>0.9.1</version>
</dependency>
```