fix(export): 内联 PDF 字体并清理历史记录

This commit is contained in:
2026-09-08 00:25:41 +08:00
parent 27c48cba96
commit 8b5d1f3b08
6 changed files with 72 additions and 3 deletions
+5
View File
@@ -24,6 +24,11 @@ export default defineConfig({
},
build: {
manifest: true,
// PDF 快照运行在离线打印页中;将 Chromium 实际使用的 WOFF2 字体内联,
// 避免 Tauri 资源协议无法通过 fetch 转存字体而导致整次导出失败。
assetsInlineLimit(filePath) {
return /\.woff2$/i.test(filePath) ? true : undefined
},
rollupOptions: {
output: {
// Keep lazy languages/diagrams independent; do not collect every vendor into one bundle.