minify_html 0.4.2 → 0.4.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbc83589441ac0bc5861d3a31cd07d53429546c977e3023b99a8c43a961fe290
4
- data.tar.gz: b275f7242f08923a719ac658bef9bae9efe33315f173d997c90377bebd73b06b
3
+ metadata.gz: 5b9fe95f5911d013df14d43bccf9a19dbc062863ea0ac9e219ac8ca8813c248f
4
+ data.tar.gz: 01d3f0afeb8c28af4268087d41a840ce1b0dd24c35721198dd5f850e47bc270f
5
5
  SHA512:
6
- metadata.gz: 7d34c54ca36ab3ac4595143e4e49bc782f907334457008d92533f90ce4dfdb07624317f948508c8633f2c8cb40bde6030431d3e10fe896d34f91e88d6c5fbe6f
7
- data.tar.gz: 699a40002e3f18c50147e23365297da8e8c58e920d08b5e723e18f64c29d615380a0563e98c945c9169da1f20077729001ea2c7557c35b3cd9f5255aad83eb09
6
+ metadata.gz: a8e5ced8bd458b232fe907efc450f5972279e41a945eb8f46008da2c9f88a12d28552e63c5d626c4dbf703591ada4ebe4890519d4da4cf7bd578246126e6eed0
7
+ data.tar.gz: e43f7ec3c9dc7ad9a8441c0e5577bc77ce955125d5e5eeea2c6ec4a74a53581b6ec201933260b1283a87c2c28f8c1dc470c04270ee6dd21d4eba0124a582df2b
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.2/core/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.2/core/average-sizes.png">
15
+ <img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.8/core/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.4.8/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.2-linux-x86_64) |
26
- [macOS](https://wilsonl.in/minify-html/bin/0.4.2-macos-x86_64) |
27
- [Windows](https://wilsonl.in/minify-html/bin/0.4.2-windows-x86_64.exe)
25
+ [Linux](https://wilsonl.in/minify-html/bin/0.4.8-linux-x86_64) |
26
+ [macOS](https://wilsonl.in/minify-html/bin/0.4.8-macos-x86_64) |
27
+ [Windows](https://wilsonl.in/minify-html/bin/0.4.8-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.2", features = ["js-esbuild"] }
46
+ minify-html = { version = "0.4.8", 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.2</version>
123
+ <version>0.4.8</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:
@@ -396,7 +398,7 @@ Any entities in attribute values are decoded, and then the shortest representati
396
398
 
397
399
  - Double quoted, with any `"` encoded.
398
400
  - Single quoted, with any `'` encoded.
399
- - Unquoted, with `"`/`'` first character (if applicable), `>` last character (if applicable), and any whitespace encoded.
401
+ - Unquoted, with `"`/`'` first character (if applicable), any `>`, and any whitespace encoded.
400
402
 
401
403
  `class` and `d` attributes have their whitespace (after any decoding) trimmed and collapsed.
402
404
 
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.2
4
+ version: 0.4.8
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-02-05 00:00:00.000000000 Z
11
+ date: 2021-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle