Files
cpzs-frontend/lottery-app/vite.config.js

21 lines
387 B
JavaScript
Raw Normal View History

2025-08-01 19:03:57 +08:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
server: {
host: '0.0.0.0', // 允许局域网访问
port: 5173
}
})