chore(spec): 5i 勾选 T1
Spec: 2026-11-02_blog-5i-fonts-polish Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
8d82aab213
commit
6293fe25d5
1 file changed
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
## 阶段一:实现
|
||||
|
||||
- [ ] T1 字族按需加载根治
|
||||
- [x] T1 字族按需加载根治
|
||||
- claim: worker-one
|
||||
- boundary: src/layouts/BaseLayout.astro(去掉 `track === 'reading'` 的字体门禁,改为「本页内容实际用到的字族」驱动:构建期扫正文/页面文案里的 `font-kai|font-song|font-fangsong|font-huiwen|font-kuaile|font-serif` 决定注入哪几份字体 CSS;零命中时只加载 sans/mono)、src/lib/ 新增字体诉求探测工具
|
||||
- verify: `grep -q "FONT_CSS\|neededFonts" src/layouts/BaseLayout.astro && E2E_BASE=http://127.0.0.1:18925 node tests/e2e.mjs 2>&1 | grep -qE "汇总: [0-9]+/[0-9]+ PASS"`
|
||||
|
||||
Reference in new issue
Block a user