minify_html 0.3.7 → 0.3.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: 0fb2d032ff7df2cda92929239361409352ecf8bb54d624d386f8f5cd29f48487
4
- data.tar.gz: cafc23354545a412a6cd20eeb823f66432c1a849d8fa45c8892f33e17204f547
3
+ metadata.gz: 7db160e79f1e3636e57982891d909f62f903a9e82d5d9f1044dc7784297bad98
4
+ data.tar.gz: 4b0670b4251f675959c8175871f3cc1e758593a28c671d8144f2291a7511d07c
5
5
  SHA512:
6
- metadata.gz: 9cbbd22cfad76f3f9c0649b699facb83a78b264d5f132cb6a445b31831da7f62ad9369de6680df02dcbc3fdf3d0a656e1f5f87c46301072491e96eac17454944
7
- data.tar.gz: b57f2538fc5a7aebc7d0a972db31b72f1813bc38d4e5f6241b2eaa5e77e2bde36c7be54d23bf7eb2aa680874848e1814b3042bd4389583197593453029ae6aad
6
+ metadata.gz: b8307e8382ff1d28a18d4d4d6c8cf77cd0aae3b72892dcca83e68b34c583a66709764d1a5f8ccfd444a6d4ffeb75645e230c830a9f139d9139f0cf000cbe1408
7
+ data.tar.gz: 6360c73801ad0777bb860f002e853c86a4d279ccdc737dc4b2a8f14a72f5c557057f5bc2c949d37ba3194b3e964ec67a07f373a298c90387cfa627acc6f9b34a
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.7/js/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.7/js/average-sizes.png">
14
+ <img width="415" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.8/js/average-speeds.png"> <img width="415" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/minify-html/bench/0.3.8/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.7-linux-x86_64) |
25
- [macOS](https://wilsonl.in/minify-html/bin/0.3.7-macos-x86_64) |
26
- [Windows](https://wilsonl.in/minify-html/bin/0.3.7-windows-x86_64.exe)
24
+ [Linux](https://wilsonl.in/minify-html/bin/0.3.8-linux-x86_64) |
25
+ [macOS](https://wilsonl.in/minify-html/bin/0.3.8-macos-x86_64) |
26
+ [Windows](https://wilsonl.in/minify-html/bin/0.3.8-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.7", features = ["js-esbuild"] }
45
+ minify-html = { version = "0.3.8", 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).
@@ -119,21 +119,24 @@ Add as a Maven dependency:
119
119
  <dependency>
120
120
  <groupId>in.wilsonl.minifyhtml</groupId>
121
121
  <artifactId>minify-html</artifactId>
122
- <version>0.3.7</version>
122
+ <version>0.3.8</version>
123
123
  </dependency>
124
124
  ```
125
125
 
126
126
  ##### Use
127
127
 
128
128
  ```java
129
+ import in.wilsonl.minifyhtml.Configuration;
129
130
  import in.wilsonl.minifyhtml.MinifyHtml;
131
+ import in.wilsonl.minifyhtml.SyntaxException;
130
132
 
131
- MinifyHtml.Configuration cfg = new MinifyHtml.Configuration.Builder()
133
+ Configuration cfg = new Configuration.Builder()
132
134
  .setMinifyJs(false)
133
135
  .build();
136
+
134
137
  try {
135
138
  String minified = MinifyHtml.minify("<p> Hello, world! </p>", cfg);
136
- } catch (MinifyHtml.SyntaxException e) {
139
+ } catch (SyntaxException e) {
137
140
  System.err.println(e.getMessage());
138
141
  }
139
142
 
Binary file
Binary file
Binary file
Binary file
Binary file
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.7
4
+ version: 0.3.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: 2020-08-24 00:00:00.000000000 Z
11
+ date: 2020-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fiddle