添加必要ts文件到git

This commit is contained in:
2026-06-20 15:21:07 +08:00
parent 36222e2675
commit a3e2222388
4 changed files with 124 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
build:{
chunkSizeWarningLimit: 1500,
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('node_modules')) {
return 'vendor';
}
}
}
}
},
plugins: [vue()
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
host : '192.168.8.118',
port: 8001,
proxy: {
'/api': {
target: 'http://192.168.8.118:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
},
// cors: true
},
base: '/'
})