123456789101112131415161718192021 |
- import { defineConfig } from 'vite'
- import vue from '@vitejs/plugin-vue'
- import path from 'path'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [vue()],
- resolve: {
- // 设置别名
- alias: {
- '@': path.resolve(__dirname, 'src')
- }
- },
- // 配置前端服务地址和端口
- server: {
- host: '0.0.0.0',
- port: 8991,
- // 是否开启 https
- https: false,
- },
- })
|