feat: enhance plugin functionality

This commit is contained in:
时雨
2026-01-06 16:54:49 +08:00
committed by GitHub
parent 31d97b2968
commit 24255744df
48 changed files with 3089 additions and 3811 deletions

View File

@@ -4,4 +4,21 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
// 代理 API 请求到后端服务器
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
build: {
rollupOptions: {
input: {
main: 'index.html',
'plugin-frame': 'plugin-frame.html',
},
},
},
})