Files
Exiled-Exchange-2/renderer/vite.config.mts
Kvan7 4951ac9e2d v0.3.1 (#260)
* Corrupted items pricecheck #252

* Features/tests (#254)

* Basic test working

* LETS GO TESTING

* 0.1.0f bump

* version bump & linter fixes
2025-01-08 22:10:59 -06:00

39 lines
819 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"),
},
},
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" },
},
},
});