mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2025-10-30 14:17:55 +00:00
40 lines
871 B
TypeScript
40 lines
871 B
TypeScript
import path from "path";
|
|
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
target: "esnext",
|
|
assetsInlineLimit: 0,
|
|
},
|
|
optimizeDeps: {
|
|
esbuildOptions: { target: "esnext" },
|
|
},
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
isCustomElement: (tag) => tag === "webview",
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@ipc": path.resolve(__dirname, "./src/../../ipc"),
|
|
"@specs": path.resolve(__dirname, "./specs"),
|
|
},
|
|
},
|
|
define: {
|
|
"import.meta.vitest": "undefined",
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"^/(config|uploads|proxy)": { target: "http://127.0.0.1:8584" },
|
|
"/events": { ws: true, target: "http://127.0.0.1:8584" },
|
|
},
|
|
},
|
|
});
|