admin.xpcool.com/apps/web-tdesign/vite.config.ts
夏犀麟 a44244c7ad
Some checks failed
CI / Test (ubuntu-latest) (push) Has been skipped
CI / Lint (ubuntu-latest) (push) Has been skipped
CI / Check (ubuntu-latest) (push) Has been skipped
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been skipped
Deploy Website on push / Deploy Push Playground Ftp (push) Has been skipped
Deploy Website on push / Deploy Push Docs Ftp (push) Has been skipped
Deploy Website on push / Deploy Push Antd Ftp (push) Has been skipped
Deploy Website on push / Deploy Push Element Ftp (push) Has been skipped
Deploy Website on push / Deploy Push Naive Ftp (push) Has been skipped
Release Drafter / update_release_draft (push) Has been skipped
Deploy Website on push / Rerun on failure (push) Has been skipped
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
chore: init admin.xpcool.com (vben5 + tdesign)
2026-08-24 23:56:57 +08:00

33 lines
815 B
TypeScript
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, 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 后端
'/admin': {
changeOrigin: true,
target: 'http://localhost:8000',
ws: true,
},
// 开放接口 → GoFrame 后端
'/api': {
changeOrigin: true,
target: 'http://localhost:8000',
ws: true,
},
},
},
},
};
});