minify_html 0.4.3 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- 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: 92daef8aa214ca3c6e25fc1ecde841a2af2692e8db870b7dad0e706e6b30def7
|
4
|
+
data.tar.gz: e4c6945471a131bc029df7a85165a25aad24f178d3fc65935d105dd114cc19a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b173f058c3d926f6f62e6b63c7d3a4f5546fd64b2c7592738b5d6da8803839b3e992546d031812de6707d7a1a7f0a8d0c78e4d6033ece471552c414c2d216031
|
7
|
+
data.tar.gz: e164ad4361dfdc27fd2cf9e20ecacc581fcb1d12607ce3dbb6d7a2f915faf8598e8a0423cb2d059629da26611141057848c62c5890cc356fb8c5c5397b589b01
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Comes with native bindings to Node.js, Python, Java, and Ruby.
|
|
12
12
|
|
13
13
|
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)
|
14
14
|
|
15
|
-
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.
|
15
|
+
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.5/core/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.5/core/average-sizes.png">
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
@@ -22,9 +22,9 @@ Precompiled binaries are available for x86-64 Linux, macOS, and Windows.
|
|
22
22
|
|
23
23
|
##### Get
|
24
24
|
|
25
|
-
[Linux](https://wilsonl.in/minify-html/bin/0.4.
|
26
|
-
[macOS](https://wilsonl.in/minify-html/bin/0.4.
|
27
|
-
[Windows](https://wilsonl.in/minify-html/bin/0.4.
|
25
|
+
[Linux](https://wilsonl.in/minify-html/bin/0.4.5-linux-x86_64) |
|
26
|
+
[macOS](https://wilsonl.in/minify-html/bin/0.4.5-macos-x86_64) |
|
27
|
+
[Windows](https://wilsonl.in/minify-html/bin/0.4.5-windows-x86_64.exe)
|
28
28
|
|
29
29
|
##### Use
|
30
30
|
|
@@ -43,7 +43,7 @@ minify-html --src /path/to/src.html --out /path/to/output.min.html --css --js
|
|
43
43
|
|
44
44
|
```toml
|
45
45
|
[dependencies]
|
46
|
-
minify-html = { version = "0.4.
|
46
|
+
minify-html = { version = "0.4.5", features = ["js-esbuild"] }
|
47
47
|
```
|
48
48
|
|
49
49
|
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:
|
|
120
120
|
<dependency>
|
121
121
|
<groupId>in.wilsonl.minifyhtml</groupId>
|
122
122
|
<artifactId>minify-html</artifactId>
|
123
|
-
<version>0.4.
|
123
|
+
<version>0.4.5</version>
|
124
124
|
</dependency>
|
125
125
|
```
|
126
126
|
|
@@ -196,6 +196,8 @@ print MinifyHtml.minify("<p> Hello, world! </p>", { :minify_js => false, :mini
|
|
196
196
|
|
197
197
|
## Minification
|
198
198
|
|
199
|
+
Note that many of the minification done can result in HTML that will not pass validation, but remain interpreted and rendered correctly by the browser; essentially, the laxness of the browser is taken advantage of for better minification.
|
200
|
+
|
199
201
|
### Whitespace
|
200
202
|
|
201
203
|
minify-html has advanced context-aware whitespace minification that does things such as:
|
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.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilson Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|