minify_html 0.12.0-arm64-darwin → 0.13.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -15
- data/lib/2.7/minify_html.bundle +0 -0
- data/lib/3.0/minify_html.bundle +0 -0
- data/lib/3.1/minify_html.bundle +0 -0
- data/lib/3.2/minify_html.bundle +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6330de5ab54810ce2bbe67e2e42264cf34c3ce53d422606c4c809f4734b0644
|
4
|
+
data.tar.gz: fde1e115c300062ab58dd7beb95c7826523073357b247a4b6b41b3f99907854d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fa19a76338ac23e9856372b843649637ec00f9551987c3238f7e4bfb0913c60bf91b666454e0632b547e422caf14b379a919a235a9b2305e69133176df399d4
|
7
|
+
data.tar.gz: 8152162a2fbd6f6cba8f6da11e0d0f944a66e9e1bd87cbbc5f47703bb15f1d880c8d004c69fbbf05de62c1415e1dfa976fcfedf3fbc78a1d269493b13450850b
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ A Rust HTML minifier meticulously optimised for speed and effectiveness, with bi
|
|
15
15
|
- Advanced minification strategy beats other minifiers while being much faster.
|
16
16
|
- Uses SIMD searching, direct tries, and lookup tables.
|
17
17
|
- Handles [invalid HTML](./notes/Parsing.md), with extensive testing and [fuzzing](./fuzz).
|
18
|
-
- Uses [minify-js](https://github.com/wilsonzlin/minify-js) for super fast JS minification.
|
18
|
+
- Uses [minify-js](https://github.com/wilsonzlin/minify-js) and [lightningcss](https://github.com/parcel-bundler/lightningcss) for super fast JS and CSS minification.
|
19
19
|
|
20
20
|
View the [changelog](./CHANGELOG.md) to see the latest updates.
|
21
21
|
|
@@ -23,7 +23,7 @@ View the [changelog](./CHANGELOG.md) to see the latest updates.
|
|
23
23
|
|
24
24
|
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)
|
25
25
|
|
26
|
-
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.
|
26
|
+
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.13.1/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.13.1/core/average-sizes.png">
|
27
27
|
|
28
28
|
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.
|
29
29
|
|
@@ -32,27 +32,24 @@ The [onepass](https://github.com/wilsonzlin/minify-html/tree/master/rust/onepass
|
|
32
32
|
<details>
|
33
33
|
<summary><img width="24" src="https://wilsonl.in/minify-html/icon/cli.png"> <strong>CLI</strong></summary>
|
34
34
|
|
35
|
-
|
35
|
+
The CLI is called [minhtml](./minhtml).
|
36
|
+
Precompiled binaries are available for Linux (ARM64 and x64), macOS (ARM64 and x64), and Windows (x64).
|
37
|
+
You can download them in the GitHub release.
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
-
[Linux x64](https://wilsonl.in/minify-html/bin/0.12.0-linux-x86_64) |
|
40
|
-
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.12.0-linux-arm64) |
|
41
|
-
[macOS x64](https://wilsonl.in/minify-html/bin/0.12.0-macos-x86_64) |
|
42
|
-
[Windows x64](https://wilsonl.in/minify-html/bin/0.12.0-windows-x86_64.exe)
|
39
|
+
If you have Cargo installed, you can also build and install from source: `cargo install minhtml`.
|
43
40
|
|
44
41
|
### Use
|
45
42
|
|
46
43
|
Use the `--help` argument for more details.
|
47
44
|
|
48
45
|
```bash
|
49
|
-
|
46
|
+
minhtml --output /path/to/output.min.html --keep-closing-tags --minify-css /path/to/src.html
|
50
47
|
```
|
51
48
|
|
52
49
|
To quickly parallel process a batch of files in place:
|
53
50
|
|
54
51
|
```bash
|
55
|
-
|
52
|
+
minhtml --keep-closing-tags --minify-css /path/to/**/*.html
|
56
53
|
```
|
57
54
|
|
58
55
|
</details>
|
@@ -64,7 +61,7 @@ minify-html --keep-closing-tags --minify-css /path/to/**/*.html
|
|
64
61
|
|
65
62
|
```toml
|
66
63
|
[dependencies]
|
67
|
-
minify-html = "0.
|
64
|
+
minify-html = "0.13.1"
|
68
65
|
```
|
69
66
|
|
70
67
|
### Use
|
@@ -76,14 +73,14 @@ Check out the [docs](https://docs.rs/minify-html) for API and usage examples.
|
|
76
73
|
<details>
|
77
74
|
<summary><img width="24" src="https://wilsonl.in/minify-html/icon/deno.png"> <strong>Deno</strong></summary>
|
78
75
|
|
79
|
-
- Package: https://wilsonl.in/minify-html/deno/0.
|
76
|
+
- Package: https://wilsonl.in/minify-html/deno/0.13.1/index.js
|
80
77
|
- Binding: [WASM](https://webassembly.org/)
|
81
78
|
- Platforms: All
|
82
79
|
|
83
80
|
### Use
|
84
81
|
|
85
82
|
```ts
|
86
|
-
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.
|
83
|
+
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.13.1/index.js";
|
87
84
|
|
88
85
|
const encoder = new TextEncoder();
|
89
86
|
const decoder = new TextDecoder();
|
@@ -149,7 +146,7 @@ Add as a Maven dependency:
|
|
149
146
|
<dependency>
|
150
147
|
<groupId>in.wilsonl.minifyhtml</groupId>
|
151
148
|
<artifactId>minify-html</artifactId>
|
152
|
-
<version>0.
|
149
|
+
<version>0.13.1</version>
|
153
150
|
</dependency>
|
154
151
|
```
|
155
152
|
|
data/lib/2.7/minify_html.bundle
CHANGED
Binary file
|
data/lib/3.0/minify_html.bundle
CHANGED
Binary file
|
data/lib/3.1/minify_html.bundle
CHANGED
Binary file
|
data/lib/3.2/minify_html.bundle
CHANGED
Binary file
|