This commit is contained in:
Wilson Lin 2023-05-07 18:16:04 +07:00
parent 44160e2ec7
commit 1dde21ce12
16 changed files with 25 additions and 25 deletions

View File

@ -1,6 +1,6 @@
# minify-html changelog # minify-html changelog
## Pending ## 0.11.0
- Change the default CSS minifier optimisation level to 1, as higher levels may perform dangerous optimisations. - Change the default CSS minifier optimisation level to 1, as higher levels may perform dangerous optimisations.
- Allow configuring the CSS minifier optimisation level. - Allow configuring the CSS minifier optimisation level.

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

View File

@ -30,7 +30,7 @@ For more information on how the inputs are fetched, see [fetch.js](./fetch.js).
On this [project's README](../README.md), average graphs are shown. Graphs showing per-input results are shown below: On this [project's README](../README.md), average graphs are shown. Graphs showing per-input results are shown below:
<img width="435" alt="Chart showing speed of HTML minifiers per input" src="https://wilsonl.in/minify-html/bench/0.10.8/core/speeds.png"><img width="435" alt="Chart showing effectiveness of HTML minifiers per input" src="https://wilsonl.in/minify-html/bench/0.10.8/core/sizes.png"> <img width="435" alt="Chart showing speed of HTML minifiers per input" src="https://wilsonl.in/minify-html/bench/0.11.0/core/speeds.png"><img width="435" alt="Chart showing effectiveness of HTML minifiers per input" src="https://wilsonl.in/minify-html/bench/0.11.0/core/sizes.png">
Results depend on the input, so charts show performance relative to minify-html as a percentage. Results depend on the input, so charts show performance relative to minify-html as a percentage.

View File

@ -2,7 +2,7 @@
publish = false publish = false
name = "minify-html-cli" name = "minify-html-cli"
description = "Extremely fast and smart HTML + JS + CSS minifier" description = "Extremely fast and smart HTML + JS + CSS minifier"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"

View File

@ -1,7 +1,7 @@
[package] [package]
publish = false publish = false
name = "minify-html-java" name = "minify-html-java"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"

View File

@ -6,7 +6,7 @@
<groupId>in.wilsonl.minifyhtml</groupId> <groupId>in.wilsonl.minifyhtml</groupId>
<artifactId>minify-html</artifactId> <artifactId>minify-html</artifactId>
<version>0.10.8</version> <version>0.11.0</version>
<name>minify-html</name> <name>minify-html</name>
<description>Extremely fast and smart HTML + JS + CSS minifier</description> <description>Extremely fast and smart HTML + JS + CSS minifier</description>

View File

@ -1,7 +1,7 @@
[package] [package]
name = "minify-html-node" name = "minify-html-node"
publish = false publish = false
version = "0.10.8" version = "0.11.0"
description = "Node.js bindings for minify-html" description = "Node.js bindings for minify-html"
authors = ["Wilson Lin <npm@wilsonl.in>"] authors = ["Wilson Lin <npm@wilsonl.in>"]
edition = "2021" edition = "2021"
@ -10,7 +10,7 @@ edition = "2021"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
minify-html = "0.10.8" minify-html = "0.11.0"
[dependencies.neon] [dependencies.neon]
version = "0.10" version = "0.10"

View File

@ -14,7 +14,7 @@
"README.md", "README.md",
"postinstall.js" "postinstall.js"
], ],
"version": "0.10.8", "version": "0.11.0",
"types": "index.d.ts", "types": "index.d.ts",
"scripts": { "scripts": {
"build": "cargo-cp-artifact --artifact cdylib minify-html-node index.node -- cargo build --message-format=json-render-diagnostics", "build": "cargo-cp-artifact --artifact cdylib minify-html-node index.node -- cargo build --message-format=json-render-diagnostics",

View File

@ -6,7 +6,7 @@ license = "MIT"
homepage = "https://github.com/wilsonzlin/minify-html" homepage = "https://github.com/wilsonzlin/minify-html"
readme = "README.md" readme = "README.md"
repository = "https://github.com/wilsonzlin/minify-html.git" repository = "https://github.com/wilsonzlin/minify-html.git"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"

View File

@ -6,7 +6,7 @@ license = "MIT"
homepage = "https://github.com/wilsonzlin/minify-html" homepage = "https://github.com/wilsonzlin/minify-html"
readme = "README.md" readme = "README.md"
repository = "https://github.com/wilsonzlin/minify-html.git" repository = "https://github.com/wilsonzlin/minify-html.git"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"

View File

@ -1,7 +1,7 @@
[package] [package]
publish = false publish = false
name = "minify-html-ruby" name = "minify-html-ruby"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"

View File

@ -2,7 +2,7 @@ require 'rake'
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "minify_html" spec.name = "minify_html"
spec.version = "0.10.8" spec.version = "0.11.0"
spec.authors = ["Wilson Lin"] spec.authors = ["Wilson Lin"]
spec.email = ["code@wilsonl.in"] spec.email = ["code@wilsonl.in"]
spec.license = "MIT" spec.license = "MIT"

View File

@ -7,7 +7,7 @@ readme = "README.md"
keywords = ["html", "compress", "minifier", "js", "css"] keywords = ["html", "compress", "minifier", "js", "css"]
categories = ["compression", "command-line-utilities", "development-tools::build-utils", "web-programming"] categories = ["compression", "command-line-utilities", "development-tools::build-utils", "web-programming"]
repository = "https://github.com/wilsonzlin/minify-html.git" repository = "https://github.com/wilsonzlin/minify-html.git"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"
include = ["/src/**/*", "/Cargo.toml", "/LICENSE", "/README.md"] include = ["/src/**/*", "/Cargo.toml", "/LICENSE", "/README.md"]

View File

@ -7,7 +7,7 @@ readme = "README.md"
keywords = ["html", "compress", "minifier", "js", "css"] keywords = ["html", "compress", "minifier", "js", "css"]
categories = ["compression", "command-line-utilities", "development-tools::build-utils", "web-programming"] categories = ["compression", "command-line-utilities", "development-tools::build-utils", "web-programming"]
repository = "https://github.com/wilsonzlin/minify-html.git" repository = "https://github.com/wilsonzlin/minify-html.git"
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"
include = ["/src/**/*", "/Cargo.toml", "/LICENSE", "/README.md"] include = ["/src/**/*", "/Cargo.toml", "/LICENSE", "/README.md"]

View File

@ -8,7 +8,7 @@ An HTML minifier that provides the functionality of [minify-html](https://github
## Performance ## Performance
<img width="600" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.10.8/core/average-speeds.png"> <img width="600" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.11.0/core/average-speeds.png">
## Usage ## Usage

View File

@ -1,7 +1,7 @@
[package] [package]
name = "index" name = "index"
publish = false publish = false
version = "0.10.8" version = "0.11.0"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2021" edition = "2021"