mirror of
https://github.com/2234839/web-font.git
synced 2026-11-23 01:03:36 +08:00
59 lines
1.5 KiB
JSON
59 lines
1.5 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": "^0.2.1"
|
||
},
|
||
"devDependencies": {
|
||
"@napi-rs/canvas": "^1.0.13",
|
||
"@types/node": "^26.6.5",
|
||
"@vitejs/plugin-vue": "^6.0.10",
|
||
"@xmldom/xmldom": "^0.9.12",
|
||
"jsdom": "^30.1.3",
|
||
"puppeteer": "^25.16.0",
|
||
"tsdown": "0.23.2",
|
||
"typescript": "^7.0.2",
|
||
"undici": "^8.12.3",
|
||
"vite": "^8.3.5",
|
||
"vite-plugin-pilot": "^1.0.36",
|
||
"vitest": "^5.0.5",
|
||
"vue-router": "^5.4.0"
|
||
}
|
||
}
|