mirror of
https://github.com/Xevion/banner.git
synced 2025-12-05 23:14:20 -06:00
33 lines
680 B
TypeScript
33 lines
680 B
TypeScript
import { defineConfig } from "vite";
|
|
import viteReact from "@vitejs/plugin-react";
|
|
import tanstackRouter from "@tanstack/router-plugin/vite";
|
|
import { resolve } from "node:path";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [tanstackRouter({ autoCodeSplitting: true }), viteReact()],
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:8080",
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
sourcemap: true,
|
|
},
|
|
});
|