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
33 lines
815 B
TypeScript
33 lines
815 B
TypeScript
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,
|
||
},
|
||
},
|
||
},
|
||
},
|
||
};
|
||
});
|