minify_html 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -11
- 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: 4bd2c89ec4f024b67cea95c499fcf8f0cac743c0b186920ea9ed0400b36d5355
|
4
|
+
data.tar.gz: 2fd88803a4097495d32c026999810e36178fbb43c39af5cdf733d3e58575ba5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba97f98317f76967eb99d4ef6d4db68eeb900e2924fef550c01cee0744a60540a8b79ecf765075cf016dc16f0cfcd10ea1f4e106c5d4a5de443fb7432b8d59f9
|
7
|
+
data.tar.gz: 962ea48bfd7ecdc39b42a60067c415fbadb8d2d3e7160239152052b0c250a79694afc82ccc499dba084c3cf9d497ef974b43608e2663e9f4d078b81bfb126e6a
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# minify-html
|
2
2
|
|
3
|
-
An HTML minifier meticulously optimised for both speed and effectiveness
|
3
|
+
An HTML minifier meticulously optimised for both speed and effectiveness written in Rust.
|
4
|
+
Comes with native bindings to Node.js, Python, Java, and Ruby.
|
4
5
|
|
5
6
|
- Advanced minification strategy beats other minifiers with only one pass.
|
6
7
|
- Uses zero memory allocations, SIMD searching, direct tries, and lookup tables.
|
@@ -11,7 +12,7 @@ An HTML minifier meticulously optimised for both speed and effectiveness, availa
|
|
11
12
|
|
12
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)
|
13
14
|
|
14
|
-
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.
|
15
|
+
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.9/js/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.9/js/average-sizes.png">
|
15
16
|
|
16
17
|
## Usage
|
17
18
|
|
@@ -21,9 +22,9 @@ Precompiled binaries are available for x86-64 Linux, macOS, and Windows.
|
|
21
22
|
|
22
23
|
##### Get
|
23
24
|
|
24
|
-
[Linux](https://wilsonl.in/minify-html/bin/0.3.
|
25
|
-
[macOS](https://wilsonl.in/minify-html/bin/0.3.
|
26
|
-
[Windows](https://wilsonl.in/minify-html/bin/0.3.
|
25
|
+
[Linux](https://wilsonl.in/minify-html/bin/0.3.9-linux-x86_64) |
|
26
|
+
[macOS](https://wilsonl.in/minify-html/bin/0.3.9-macos-x86_64) |
|
27
|
+
[Windows](https://wilsonl.in/minify-html/bin/0.3.9-windows-x86_64.exe)
|
27
28
|
|
28
29
|
##### Use
|
29
30
|
|
@@ -42,10 +43,10 @@ minify-html --src /path/to/src.html --out /path/to/output.min.html
|
|
42
43
|
|
43
44
|
```toml
|
44
45
|
[dependencies]
|
45
|
-
minify-html = { version = "0.3.
|
46
|
+
minify-html = { version = "0.3.9", features = ["js-esbuild"] }
|
46
47
|
```
|
47
48
|
|
48
|
-
Building with the `js-esbuild` feature requires the Go compiler to be installed as well, to build the [JS minifier](https://github.com/
|
49
|
+
Building with the `js-esbuild` feature requires the Go compiler to be installed as well, to build the [JS minifier](https://github.com/wilsonzlin/esbuild-rs).
|
49
50
|
|
50
51
|
If the `js-esbuild` feature is not enabled, `cfg.minify_js` will have no effect.
|
51
52
|
|
@@ -119,7 +120,7 @@ Add as a Maven dependency:
|
|
119
120
|
<dependency>
|
120
121
|
<groupId>in.wilsonl.minifyhtml</groupId>
|
121
122
|
<artifactId>minify-html</artifactId>
|
122
|
-
<version>0.3.
|
123
|
+
<version>0.3.9</version>
|
123
124
|
</dependency>
|
124
125
|
```
|
125
126
|
|
@@ -415,9 +416,7 @@ Numeric entities that do not refer to a valid [Unicode Scalar Value](https://www
|
|
415
416
|
|
416
417
|
If an entity is unintentionally formed after decoding, the leading ampersand is encoded, e.g. `&amp;` becomes `&amp;`. This is done as `&` is equal to or shorter than all other entity representations of characters part of an entity (`[&#a-zA-Z0-9;]`), and there is no other conflicting entity name that starts with `amp`.
|
417
418
|
|
418
|
-
|
419
|
-
|
420
|
-
Left chevrons after any decoding in text are encoded to `<` if possible or `<` otherwise.
|
419
|
+
Note that it's possible to get an unintentional entity after removing comments, e.g. `&am<!-- -->p`; minify-html will **not** encode the leading ampersand.
|
421
420
|
|
422
421
|
### Comments
|
423
422
|
|
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.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilson Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|