Skip to content

Commit

Permalink
chore(woff2): 升级 node 版本的 woff2 压缩器
Browse files Browse the repository at this point in the history
  • Loading branch information
KonghaYao committed Dec 18, 2023
1 parent 39a681d commit fd4f601
Show file tree
Hide file tree
Showing 3 changed files with 660 additions and 86 deletions.
2 changes: 1 addition & 1 deletion packages/subsets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@chinese-fonts/wawoff2": "2.0.5",
"@konghayao/harfbuzzjs": "8.2.2",
"@konghayao/opentype.js": "2023.11.20",
"@napi-rs/ttf2woff2": "^0.0.5",
"@napi-rs/woff-build": "^0.1.1",
"byte-size": "^8.1.1",
"fs-extra": "^11.1.1",
"md5": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/subsets/src/convert/font-converter.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import {
convertTTFToWOFF2Async,
convertWOFF2ToTTFAsync,
} from '@napi-rs/ttf2woff2';
} from '@napi-rs/woff-build';

/** 字体格式转化, node 特供版本,速度非常快 */
export const convert = async function (
Expand Down
Loading

0 comments on commit fd4f601

Please sign in to comment.