26 lines
553 B
TypeScript
26 lines
553 B
TypeScript
import { defineConfig } from "vite";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
|
|
server: {
|
|
watch: {
|
|
ignored: ['**/node_modules/**', '**/dist/**' , '**/opt/**'],
|
|
},
|
|
proxy: {
|
|
"/oauth2": {
|
|
target: "http://127.0.0.1:8000",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|