初始化2

This commit is contained in:
SunYF
2026-08-28 15:06:01 +08:00
parent b34325a16f
commit a9c3fbeb41
537 changed files with 176215 additions and 17 deletions
+22
View File
@@ -0,0 +1,22 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 构建产物直接写入 Go 嵌入静态目录(main.go go:embed public
export default defineConfig({
plugins: [vue()],
base: './',
build: {
outDir: '../public',
emptyOutDir: true
},
server: {
port: 7070,
host: true,
proxy: {
'/api': {
target: 'http://localhost:8888',
changeOrigin: true
}
}
}
})