24 lines
413 B
TypeScript
24 lines
413 B
TypeScript
|
import { fileURLToPath, URL } from 'node:url'
|
||
|
|
||
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
],
|
||
|
server:{
|
||
|
port: 5175,
|
||
|
host:'0.0.0.0'
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
||
|
}
|
||
|
},
|
||
|
optimizeDeps: {
|
||
|
include: ['element-plus']
|
||
|
}
|
||
|
})
|