-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.svg linguist-generated | ||
*.html linguist-generated | ||
*.js linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## css minify | ||
|
||
[support minify](https://github.com/ahaoboy/ansi2/pull/11): Merge text with the same attributes to reduce the number of elements | ||
[support css minify](https://github.com/ahaoboy/ansi2/pull/14): Compress CSS class names | ||
|
||
Through this two optimization methods, the size has been reduced to about one-fifth. | ||
|
||
|
||
``` | ||
-rw-r--r-- 1 ace None 89K Oct 23 17:04 vitest.svg | ||
-rw-r--r-- 1 ace None 8.8K Oct 24 19:37 vitest.html | ||
-rw-r--r-- 1 ace None 25K Oct 24 19:37 vitest.svg | ||
``` | ||
|
||
## Config | ||
|
||
Added two new parameters | ||
|
||
### font-size | ||
Customize font size | ||
|
||
### length-adjust | ||
|
||
Control SVG text rendering | ||
|
||
|
||
## wasm | ||
|
||
Publish the correct .d.ts file to avoid tsc compiling enum incorrectly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters