minify_html 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -10
- data/lib/linux-ruby2.5 +0 -0
- data/lib/linux-ruby2.6 +0 -0
- data/lib/linux-ruby2.7 +0 -0
- data/lib/macos-ruby2.5 +0 -0
- data/lib/macos-ruby2.6 +0 -0
- data/lib/macos-ruby2.7 +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87157156d886bb5441dba95827ac3f02db44b0a1c8c9ab1b182b2acabd64696a
|
4
|
+
data.tar.gz: 905ed3bc2db56eac0b22d855086477a26f1d854622c088162f41652936d9c806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3772603fbb7e39849da79324ffdb343a40e759927b0bbd34f53a27dab7b1c72cd8d519f9930a8ccdeb4ba7d8b265474ae2e58daac10325dd413b8434c1d2f8a4
|
7
|
+
data.tar.gz: '0487f08956662c167d102bc2bc953a086875596436e3069dbbeecacf10be3c3b0137df422eb25a127b8b42ce2763fddba715971bbcc2c2da4960a914764d3532'
|
data/README.md
CHANGED
@@ -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.9.
|
26
|
+
<img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.9.2/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.9.2/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
|
|
@@ -36,11 +36,11 @@ Precompiled binaries are available for Linux, macOS, and Windows.
|
|
36
36
|
|
37
37
|
### Get
|
38
38
|
|
39
|
-
[Linux x64](https://wilsonl.in/minify-html/bin/0.9.
|
40
|
-
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.9.
|
41
|
-
[macOS x64](https://wilsonl.in/minify-html/bin/0.9.
|
42
|
-
[macOS ARM64](https://wilsonl.in/minify-html/bin/0.9.
|
43
|
-
[Windows x64](https://wilsonl.in/minify-html/bin/0.9.
|
39
|
+
[Linux x64](https://wilsonl.in/minify-html/bin/0.9.2-linux-x86_64) |
|
40
|
+
[Linux ARM64](https://wilsonl.in/minify-html/bin/0.9.2-linux-arm64) |
|
41
|
+
[macOS x64](https://wilsonl.in/minify-html/bin/0.9.2-macos-x86_64) |
|
42
|
+
[macOS ARM64](https://wilsonl.in/minify-html/bin/0.9.2-macos-arm64) |
|
43
|
+
[Windows x64](https://wilsonl.in/minify-html/bin/0.9.2-windows-x86_64.exe)
|
44
44
|
|
45
45
|
### Use
|
46
46
|
|
@@ -50,6 +50,12 @@ Use the `--help` argument for more details.
|
|
50
50
|
minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /path/to/src.html
|
51
51
|
```
|
52
52
|
|
53
|
+
To quickly parallel process a batch of files in place:
|
54
|
+
|
55
|
+
```bash
|
56
|
+
minify-html --keep-closing-tags --minify-css /path/to/**/*.html
|
57
|
+
```
|
58
|
+
|
53
59
|
</details>
|
54
60
|
|
55
61
|
<details>
|
@@ -59,7 +65,7 @@ minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /
|
|
59
65
|
|
60
66
|
```toml
|
61
67
|
[dependencies]
|
62
|
-
minify-html =
|
68
|
+
minify-html = "0.9.2"
|
63
69
|
```
|
64
70
|
|
65
71
|
### Use
|
@@ -71,14 +77,14 @@ Check out the [docs](https://docs.rs/minify-html) for API and usage examples.
|
|
71
77
|
<details>
|
72
78
|
<summary><img width="24" src="https://wilsonl.in/minify-html/icon/deno.png"> <strong>Deno</strong></summary>
|
73
79
|
|
74
|
-
- Package: https://wilsonl.in/minify-html/deno/0.9.
|
80
|
+
- Package: https://wilsonl.in/minify-html/deno/0.9.2/index.js
|
75
81
|
- Binding: [WASM](https://webassembly.org/)
|
76
82
|
- Platforms: All
|
77
83
|
|
78
84
|
### Use
|
79
85
|
|
80
86
|
```ts
|
81
|
-
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.9.
|
87
|
+
import init, {minify} from "https://wilsonl.in/minify-html/deno/0.9.2/index.js";
|
82
88
|
|
83
89
|
const encoder = new TextEncoder();
|
84
90
|
const decoder = new TextDecoder();
|
@@ -143,7 +149,7 @@ Add as a Maven dependency:
|
|
143
149
|
<dependency>
|
144
150
|
<groupId>in.wilsonl.minifyhtml</groupId>
|
145
151
|
<artifactId>minify-html</artifactId>
|
146
|
-
<version>0.9.
|
152
|
+
<version>0.9.2</version>
|
147
153
|
</dependency>
|
148
154
|
```
|
149
155
|
|
data/lib/linux-ruby2.5
CHANGED
Binary file
|
data/lib/linux-ruby2.6
CHANGED
Binary file
|
data/lib/linux-ruby2.7
CHANGED
Binary file
|
data/lib/macos-ruby2.5
CHANGED
Binary file
|
data/lib/macos-ruby2.6
CHANGED
Binary file
|
data/lib/macos-ruby2.7
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minify_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilson Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|