Restore larger icons and use width attr instead

This commit is contained in:
Wilson Lin 2021-08-07 20:27:56 +10:00
parent 6a7c5b2d10
commit 94f292da38
7 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ Comparison with [html-minfier](https://github.com/kangax/html-minifier) and [min
## Usage
<details>
<summary><img src="./icon/cli.png"> <strong>CLI</strong></summary>
<summary><img width="24" src="./icon/cli.png"> <strong>CLI</strong></summary>
Precompiled binaries are available for x86-64 Linux, macOS, and Windows.
@ -38,7 +38,7 @@ minify-html --src /path/to/src.html --out /path/to/output.min.html --css --js
</details>
<details>
<summary><img src="./icon/rust.png"> <strong>Rust</strong></summary>
<summary><img width="24" src="./icon/rust.png"> <strong>Rust</strong></summary>
##### Get
@ -58,7 +58,7 @@ Check out the [docs](https://docs.rs/minify-html) for API and usage examples.
</details>
<details>
<summary><img src="./icon/nodejs.png"> <strong>Node.js</strong></summary>
<summary><img width="24" src="./icon/nodejs.png"> <strong>Node.js</strong></summary>
- Package: [@minify-html/js](https://www.npmjs.com/package/@minify-html/js)
- Binding: [N-API](https://nodejs.org/api/n-api.html)
@ -107,7 +107,7 @@ const minified = minifyHtml.minifyInPlace(fs.readFileSync("source.html"), cfg);
</details>
<details>
<summary><img src="./icon/java.png"> <strong>Java</strong></summary>
<summary><img width="24" src="./icon/java.png"> <strong>Java</strong></summary>
- Package: [in.wilsonl.minifyhtml](https://search.maven.org/artifact/in.wilsonl.minifyhtml/minify-html)
- Binding: [JNI](https://github.com/jni-rs/jni-rs)
@ -151,7 +151,7 @@ MinifyHtml.minifyInPlace(source, cfg);
</details>
<details>
<summary><img src="./icon/python.png"> <strong>Python</strong></summary>
<summary><img width="24" src="./icon/python.png"> <strong>Python</strong></summary>
- Package: [minify-html](https://pypi.org/project/minify-html)
- Binding: [PyO3](https://github.com/PyO3/pyo3)
@ -175,7 +175,7 @@ except SyntaxError as e:
</details>
<details>
<summary><img src="./icon/ruby.png"> <strong>Ruby</strong></summary>
<summary><img width="24" src="./icon/ruby.png"> <strong>Ruby</strong></summary>
- Package: [minify_html](https://rubygems.org/gems/minify_html)
- Binding: [Rutie](https://github.com/danielpclark/rutie)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1015 B

After

Width:  |  Height:  |  Size: 20 KiB