mirror of
https://github.com/YuleBest/FontMM.git
synced 2026-12-04 03:11:48 +08:00
- 新架构: src/ 模块源 + web/ WebUI (Vite + TS + Material Web MD3) - WebUI: 字体槽位/应用、字体测试(字重/可变字体/字号)、关于页、底部导航、edge-to-edge、跟随系统主题 - 打开 WebUI 时用 opentype.js 解析 FONT/ 字体名称填充卡片 - 打包: preplace/template 两版 + build:only-web (webroot.zip) - 工具链: oxlint/oxfmt/type-check/shellcheck; 移除旧 template/ v1 结构与 CI - 新增 MIT LICENSE
13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
// WebView 从本地加载 webroot, 资源必须相对路径
|
|
base: './',
|
|
build: {
|
|
// 构建产物直接进模块的 webroot
|
|
outDir: '../src/webroot',
|
|
// outDir 在项目根之外, 必须显式开启清空
|
|
emptyOutDir: true,
|
|
},
|
|
});
|