Files

23 lines
468 B
TypeScript
Raw Permalink Normal View History

2025-12-15 16:16:07 +08:00
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
2026-01-14 14:04:08 +08:00
server: {
host: '0.0.0.0', // 允许外部访问
port: 5173, // 端口号
},
2025-12-15 16:16:07 +08:00
})