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

22 lines
441 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 嵌入静态目录(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
}
}
}
})