30 lines
716 B
TypeScript
30 lines
716 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": "http://localhost:8080",
|
|
"/ws": { target: "ws://localhost:8080", ws: true }
|
|
}
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id: string) {
|
|
if (id.includes("element-plus")) return "element";
|
|
if (id.includes("echarts")) return "charts";
|
|
if (id.includes("livekit-client")) return "livekit";
|
|
if (id.includes("node_modules")) return "vendor";
|
|
}
|
|
}
|
|
}
|
|
},
|
|
test: {
|
|
environment: "happy-dom",
|
|
include: ["src/**/*.spec.ts"]
|
|
}
|
|
});
|