Initial commit: Copilot Toolbox template project

This commit is contained in:
Evan
2026-01-09 10:49:51 +08:00
commit 0b4b053566
31 changed files with 12085 additions and 0 deletions

33
vite.config.ts Normal file
View File

@@ -0,0 +1,33 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
// https://vite.dev/config/
export default defineConfig(() => {
return {
base: './',
plugins: [tailwindcss(), react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
}
},
optimizeDeps: {
include: ['dayjs/locale/zh-cn']
},
server: {
host: '0.0.0.0',
allowedHosts: true as true,
cors: true,
open: true,
port: 5173
},
// 生产预览服务器配置 (vite preview) - 仅用于本地测试
preview: {
host: '0.0.0.0',
port: 3000,
cors: true
}
}
})