minify_html 0.7.2 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 958ee640acc4c9e36b4e2cd5e758eff11ec7e3ae5993904df8bbdcfda2273672
4
- data.tar.gz: 2d3d15ca9ae0163aac94942522539fa717f40de197402c53a12de76ef1440995
3
+ metadata.gz: 81ae7ec50b5dbf21e6dc97f6740fe4cfeeff1a0b80e5fa6a93b0d8f876f2fcbf
4
+ data.tar.gz: 06e03a4a8303dc4e6bcddec30882dcf632936af89fd5f21388584ac5e62d2235
5
5
  SHA512:
6
- metadata.gz: 0d796a8f1913e38acf2eeae1365a69c49d0b9e41650cf1607d57328226b27af22c4a67247ad2c57c4c31fb0e03abb173ce68563f4c5ca232c4fd6d2e16dfa079
7
- data.tar.gz: c5db520f59e8c761ecbe07b8f9d815189ef2670991801be483560c4fced146f5666b53ceda71cc5911733f7ae34e1464156882134abfb228cd8872344be26bb1
6
+ metadata.gz: c3a07a695f12a25ece4ac858a6155c55ece55ee6d888df131535660d84b97bf2e3c6c5e46c1a9f4325569e1678a766f38299be32169cb645310198fbb153b2cf
7
+ data.tar.gz: 4efb0a9b2e8cbc6559f149269000efa23e781d2f2fb386206cf48d92b8ee4f9e37938c317a069ad22080f09773839bea6b5b4d2ab43c1c2edb9cbf98d11ef5a3
data/README.md CHANGED
@@ -19,7 +19,7 @@ A Rust HTML minifier meticulously optimised for speed and effectiveness, with bi
19
19
 
20
20
  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)
21
21
 
22
- <img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.7.2/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.7.2/core/average-sizes.png">
22
+ <img width="400" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.8.0/core/average-speeds.png"><img width="400" alt="Chart showing compression of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.8.0/core/average-sizes.png">
23
23
 
24
24
  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.
25
25
 
@@ -32,11 +32,11 @@ Precompiled binaries are available for Linux, macOS, and Windows.
32
32
 
33
33
  ### Get
34
34
 
35
- [Linux x64](https://wilsonl.in/minify-html/bin/0.7.2-linux-x86_64) |
36
- [Linux ARM64](https://wilsonl.in/minify-html/bin/0.7.2-linux-arm64) |
37
- [macOS x64](https://wilsonl.in/minify-html/bin/0.7.2-macos-x86_64) |
38
- [macOS ARM64](https://wilsonl.in/minify-html/bin/0.7.2-macos-arm64) |
39
- [Windows x64](https://wilsonl.in/minify-html/bin/0.7.2-windows-x86_64.exe)
35
+ [Linux x64](https://wilsonl.in/minify-html/bin/0.8.0-linux-x86_64) |
36
+ [Linux ARM64](https://wilsonl.in/minify-html/bin/0.8.0-linux-arm64) |
37
+ [macOS x64](https://wilsonl.in/minify-html/bin/0.8.0-macos-x86_64) |
38
+ [macOS ARM64](https://wilsonl.in/minify-html/bin/0.8.0-macos-arm64) |
39
+ [Windows x64](https://wilsonl.in/minify-html/bin/0.8.0-windows-x86_64.exe)
40
40
 
41
41
  ### Use
42
42
 
@@ -55,7 +55,7 @@ minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /
55
55
 
56
56
  ```toml
57
57
  [dependencies]
58
- minify-html = { version = "0.7.2", features = ["js-esbuild"] }
58
+ minify-html = { version = "0.8.0", features = ["js-esbuild"] }
59
59
  ```
60
60
 
61
61
  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.7.2</version>
123
+ <version>0.8.0</version>
124
124
  </dependency>
125
125
  ```
126
126
 
@@ -288,7 +288,7 @@ Remove any leading/trailing whitespace from any leading/trailing text nodes of a
288
288
 
289
289
  #### Element types
290
290
 
291
- minify-html recognises elements based on one of a few ways it assumes they are used. By making these assumptions, it can apply optimal whitespace minification strategies.
291
+ minify-html assumes HTML and SVG elements are used in specific ways, based on standards and best practices. By making these assumptions, it can apply optimal whitespace minification strategies. If these assumptions do not hold, consider adjusting the HTML source or turning off whitespace minification.
292
292
 
293
293
  |Group|Elements|Expected children|
294
294
  |---|---|---|
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.7.2
4
+ version: 0.8.0
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-12-14 00:00:00.000000000 Z
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle