- 在 Vite 配置中添加 publicDir 属性,指向 'public' 文件夹 - 在 Dockerfile 中设置 Vite 环境变量,用于开发和生产环境 - 更新 package.json,添加 CodeMirror 和 Milkdown 相关依赖,用于编辑器功能
37 lines
1008 B
JSON
37 lines
1008 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
"lib": ["ES2020", "DOM"],
|
|
"useDefineForClassFields": true,
|
|
"skipLibCheck": true,
|
|
"sourceMap": true,
|
|
"esModuleInterop": true,
|
|
"baseUrl": ".",
|
|
"importHelpers": true,
|
|
"experimentalDecorators": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"allowJs": false,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "preserve",
|
|
"strictFunctionTypes": false,
|
|
"strict": false,
|
|
"jsxImportSource": "vue",
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"paths": {
|
|
"@/*": ["src/*"],
|
|
"@config/*": ["config/*"]
|
|
},
|
|
"types": ["vite/client", "node"]
|
|
},
|
|
"include": ["src/**/*", "src/**/*.vue", "vite.config.ts"],
|
|
"exclude": ["node_modules", "dist", "**/*.js"]
|
|
}
|