赞
踩
// 方案一
"scripts": {
"dev": "vite",
// "build": "vue-tsc --noEmit && vite build",
"build": "vite build",
"serve": "vite preview"
},
import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], // 配置前端服务地址和端口 server: { host: '0.0.0.0', port: 3000, // 是否开启 https https: false, }, base:'./', })
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。