mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
18eada8ff3
- 引入ExamAware的DI系统并适配SecScore项目 - 添加服务注册表和窗口管理器 - 实现基于Koishi的Disposable设计的插件系统 - 集成Winston日志服务 - 分离设置窗口为独立页面 - 将非核心功能改为内置插件 - 更新README文件 - 添加相关hooks和工具函数
40 lines
904 B
TypeScript
40 lines
904 B
TypeScript
import { resolve } from "path"
|
|
import { defineConfig } from "vite"
|
|
import react from "@vitejs/plugin-react"
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(__dirname, "src"),
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
// Avoid scanning legacy `old-ss` entries under project root.
|
|
entries: ["index.html", "settings-window.html"],
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, "index.html"),
|
|
"settings-window": resolve(__dirname, "settings-window.html"),
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
host: process.env.TAURI_DEV_HOST || false,
|
|
port: 1420,
|
|
strictPort: false,
|
|
hmr: process.env.TAURI_DEV_HOST
|
|
? {
|
|
protocol: "ws",
|
|
host: process.env.TAURI_DEV_HOST,
|
|
port: 1421,
|
|
}
|
|
: undefined,
|
|
},
|
|
clearScreen: false,
|
|
})
|