import { defineConfig, viteCssLayerPlugin } from '@vben/vite-config'; export default defineConfig(async () => { return { application: {}, vite: { plugins: [ // tdesign 的 css 包进 @layer td,使 Tailwind 工具类可覆盖组件样式 viteCssLayerPlugin({ layerName: 'td', packageName: 'tdesign-vue-next', }), ], server: { proxy: { // 统一后端前缀 → GoFrame 后端(端口 10100) '/api/service': { changeOrigin: true, target: 'http://localhost:10100', ws: true, }, }, }, }, }; });