This commit is contained in:
Wilson Lin 2021-02-06 00:09:14 +11:00
commit d2408732f5
11 changed files with 16 additions and 16 deletions

View file

@ -12,7 +12,7 @@ Comes with native bindings to Node.js, Python, Java, and Ruby.
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="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.1/core/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.1/core/average-sizes.png">
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.2/core/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.2/core/average-sizes.png">
## Usage
@ -22,9 +22,9 @@ Precompiled binaries are available for x86-64 Linux, macOS, and Windows.
##### Get
[Linux](https://wilsonl.in/minify-html/bin/0.4.1-linux-x86_64) |
[macOS](https://wilsonl.in/minify-html/bin/0.4.1-macos-x86_64) |
[Windows](https://wilsonl.in/minify-html/bin/0.4.1-windows-x86_64.exe)
[Linux](https://wilsonl.in/minify-html/bin/0.4.2-linux-x86_64) |
[macOS](https://wilsonl.in/minify-html/bin/0.4.2-macos-x86_64) |
[Windows](https://wilsonl.in/minify-html/bin/0.4.2-windows-x86_64.exe)
##### Use
@ -43,7 +43,7 @@ minify-html --src /path/to/src.html --out /path/to/output.min.html --css --js
```toml
[dependencies]
minify-html = { version = "0.4.1", features = ["js-esbuild"] }
minify-html = { version = "0.4.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.4.1</version>
<version>0.4.2</version>
</dependency>
```