GPU_Web/vite.config.ts
2025-11-21 16:34:34 +08:00

18 lines
509 B
TypeScript

// vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 8080, // 设置开发服务器端口为 8080
host: '0.0.0.0', // 可选:允许外部访问(如局域网)
open: true // 可选:启动时自动打开浏览器
}
})