2026-07-07 10:29:28 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
2026-07-07 14:40:09 +08:00
|
|
|
import tailwindcss from '@tailwindcss/vite'
|
2026-07-07 10:29:28 +08:00
|
|
|
import path from 'path'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
2026-07-07 14:40:09 +08:00
|
|
|
plugins: [react(), tailwindcss()],
|
2026-07-07 10:29:28 +08:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, 'src'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': 'http://localhost:8080',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
build: {
|
|
|
|
|
outDir: 'dist',
|
|
|
|
|
},
|
|
|
|
|
})
|