sfj/sfj-managementfrontend/vite.config.ts

24 lines
413 B
TypeScript
Raw Normal View History

2024-07-28 18:38:53 +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({
plugins: [
vue(),
],
server:{
port: 5175,
host:'0.0.0.0'
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
optimizeDeps: {
include: ['element-plus']
}
})