23 lines
535 B
TypeScript
23 lines
535 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { defineConfig } from "vite"
|
|
import react from "@vitejs/plugin-react"
|
|
import tailwindcss from "@tailwindcss/vite"
|
|
import path from "path"
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: { "@": path.resolve(__dirname, "./src") },
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": { target: "http://localhost:8080", changeOrigin: true },
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: "./src/test-setup.ts",
|
|
},
|
|
})
|