Files
SnowLuma/webui/vite.config.ts
T
2026-05-02 19:06:29 +08:00

20 lines
394 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [tailwindcss(), react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
},
},
build: {
outDir: '../dist/client',
emptyOutDir: true
}
});