minify_html 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -21
- 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: 0ffc6cedbad6f9019978cec5a3d3e2d251250dc82c15885dc84dcea71aa0b011
|
4
|
+
data.tar.gz: fc9de668773e8dafae88f51f95fe1e4fabdb90c681cda7c962318497ba13368f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc12985f8efdf2ffed5a43d0db4e7a6de65fbbbbce3c295186227ef1f0e6c54c0757ea17d81cd45895d5101ffe900474ee3deb52a349525d751829e8d60a3e06
|
7
|
+
data.tar.gz: 81b2229e9ca216c5ef653150670284b2b5029d30f87c712531839435bc0320acd4da92bd5afcd65894b2cafb3b49915b746227560cc575276cd119be075c54a0
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ An HTML minifier meticulously optimised for both speed and effectiveness, availa
|
|
11
11
|
|
12
12
|
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
13
|
|
14
|
-
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.
|
14
|
+
<img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.6/js/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.6/js/average-sizes.png">
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
@@ -21,9 +21,9 @@ Precompiled binaries are available for x86-64 Linux, macOS, and Windows.
|
|
21
21
|
|
22
22
|
##### Get
|
23
23
|
|
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.
|
24
|
+
[Linux](https://wilsonl.in/minify-html/bin/0.3.6-linux-x86_64) |
|
25
|
+
[macOS](https://wilsonl.in/minify-html/bin/0.3.6-macos-x86_64) |
|
26
|
+
[Windows](https://wilsonl.in/minify-html/bin/0.3.6-windows-x86_64.exe)
|
27
27
|
|
28
28
|
##### Use
|
29
29
|
|
@@ -42,7 +42,7 @@ minify-html --src /path/to/src.html --out /path/to/output.min.html
|
|
42
42
|
|
43
43
|
```toml
|
44
44
|
[dependencies]
|
45
|
-
minify-html = { version = "0.3.
|
45
|
+
minify-html = { version = "0.3.6", features = ["js-esbuild"] }
|
46
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/evanw/esbuild).
|
@@ -161,7 +161,7 @@ Add as a Maven dependency:
|
|
161
161
|
<dependency>
|
162
162
|
<groupId>in.wilsonl.minifyhtml</groupId>
|
163
163
|
<artifactId>minify-html</artifactId>
|
164
|
-
<version>0.3.
|
164
|
+
<version>0.3.6</version>
|
165
165
|
</dependency>
|
166
166
|
```
|
167
167
|
|
@@ -468,21 +468,9 @@ Bangs, [processing instructions](https://en.wikipedia.org/wiki/Processing_Instru
|
|
468
468
|
|
469
469
|
## Parsing
|
470
470
|
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
For example, this means that it's not an error to have self-closing tags, declare multiple `<body>` elements, use incorrect attribute names and values, or write something like `<br>alert('');</br>`
|
476
|
-
|
477
|
-
However, there are some syntax requirements for speed and sanity.
|
478
|
-
|
479
|
-
### Tags
|
480
|
-
|
481
|
-
Opening tags must not be [omitted](https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission).
|
482
|
-
|
483
|
-
### Script and style
|
484
|
-
|
485
|
-
minify-html does **not** handle [escaped and double-escaped](./notes/Script%20data.md) script content.
|
471
|
+
- Input must be UTF-8.
|
472
|
+
- Opening tags must not be [omitted](https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission).
|
473
|
+
- [Escaped and double-escaped](./notes/Script%20data.md) script content are not supported.
|
486
474
|
|
487
475
|
## Issues and contributions
|
488
476
|
|
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.6
|
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-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|