- 添加 vite.config.ts 构建配置 - 添加 tsconfig.main.json(主进程单独编译) - 修复主进程模块化(menu/tray 使用 setQuitting) - 修复渲染进程导入路径 - 删除旧版 JS/Web 文件(js/、electron/、sw.js、manifest.json) - 构建验证通过:NSIS 安装包 + 便携版
19 lines
452 B
JSON
19 lines
452 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "CommonJS",
|
|
"moduleResolution": "node",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"outDir": "dist/main",
|
|
"rootDir": "src/main",
|
|
"sourceMap": true,
|
|
"declaration": false
|
|
},
|
|
"include": ["src/main/**/*.ts"],
|
|
"exclude": ["node_modules", "dist", "release"]
|
|
}
|