lite-frontend/vite.config.js

16 lines
383 B
JavaScript

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',//ip地址
port: 8080, // 设置服务启动端口号
open: false, // 设置服务启动时是否自动打开浏览器
},
// define: {
// 'process.env': process.env
// }
})