mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 19:04:23 +08:00
26 lines
494 B
TypeScript
26 lines
494 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"],
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
},
|
|
server: {
|
|
port: 1420,
|
|
strictPort: true,
|
|
},
|
|
clearScreen: false,
|
|
})
|