mirror of
https://github.com/2234839/web-font.git
synced 2026-09-04 23:02:27 +08:00
- webfont-sdk 引擎修复两处并发池 bug(原版排队分支丢任务;闭包复用会让 队列真身丢失导致 pending 卡死),新增 per-state provider 与 submitText 分批 - 新增 packages/uni-webfont:字符累积 + uni.loadFontFace 同 family 重载策略, 串行保序(maxConcurrent=1),二次 loadFont 从引擎播种累积集 - 产物同步 uni_modules/gs-webfont/js_sdk(自包含 ESM+iife+d.ts) - 端到端验证:mock 全绿;线上真实服务 4 字 → 10.1KB 合法 TTF
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
||
"name": "uni-webfont",
|
||
"version": "0.1.0",
|
||
"description": "uni-app 字体按需加载 —— 小程序/H5/App 任意中文字体,只加载页面实际用到的字符(10 字 ≈ 10KB),突破主包 2MB 与字体整包 10MB+ 限制",
|
||
"type": "module",
|
||
"main": "./dist/index.js",
|
||
"module": "./dist/index.js",
|
||
"types": "./dist/index.d.ts",
|
||
"exports": {
|
||
".": {
|
||
"types": "./dist/index.d.ts",
|
||
"development": "./src/index.ts",
|
||
"import": "./dist/index.js"
|
||
}
|
||
},
|
||
"files": [
|
||
"dist",
|
||
"README.md",
|
||
"LICENSE"
|
||
],
|
||
"scripts": {
|
||
"build": "pnpm --filter webfont-sdk build && tsdown && node scripts/sync-uni-modules.mjs",
|
||
"typecheck": "tsc --noEmit"
|
||
},
|
||
"keywords": [
|
||
"uni-app",
|
||
"webfont",
|
||
"font-subset",
|
||
"loadFontFace",
|
||
"chinese-font",
|
||
"miniprogram"
|
||
],
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "git+https://github.com/2234839/web-font.git",
|
||
"directory": "packages/uni-webfont"
|
||
},
|
||
"author": "崮生(子虚)",
|
||
"license": "MIT",
|
||
"dependencies": {
|
||
"webfont-sdk": "workspace:*"
|
||
},
|
||
"devDependencies": {
|
||
"tsdown": "^0.22.14",
|
||
"typescript": "^7.0.2"
|
||
}
|
||
}
|