2023-12-07 09:39:34 +08:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-12-07 17:15:51 +08:00
|
|
|
server: { // ← ← ← ← ← ←
|
|
|
|
host: '0.0.0.0' // ← 新增内容 ←
|
|
|
|
},
|
2023-12-07 09:39:34 +08:00
|
|
|
plugins: [
|
|
|
|
vue(),
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|