Files
bj_power/bj_power_wms_client/frontend/vite.config.js
T
2026-08-28 15:06:01 +08:00

20 lines
424 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 构建产物直接写入 Go 网关的嵌入静态目录(go:embed all:web/static
export default defineConfig({
plugins: [vue()],
build: {
outDir: '../web/static',
emptyOutDir: true
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8891',
changeOrigin: true
}
}
}
})