1 Star 0 Fork 0

张宗威 / 人行空调

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 998 Bytes
一键复制 编辑 原始数据 按行查看 历史
张宗威 提交于 2023-06-08 13:43 . 202367
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
productionSourceMap: false,
transpileDependencies: true,
lintOnSave: false, // 关闭eslint
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
devServer: {
historyApiFallback: false,
allowedHosts: "all", // 花生壳显示Invalid Host header让其不检查hostname。
https: false, // https:{type:Boolean}
open: false, // 配置自动启动浏览器
// proxy: 'http://localhost:4000' // 配置跨域处理,只有一个代理
port: 8893,
// host: 'wxtest.com',
// proxy: {
// '/air': {
// target: 'http://106.13.30.18:8893/',
// // target: 'http://192.168.1.85/',
// changeOrigin: true,
// pathRewrite: {
// '^/air': ''
// }
// }
// } // 配置多个代理,
},
css: {
loaderOptions: {
less: {
additionalData: '@import url("~@/assets/global.less");'
}
}
},
})
1
https://gitee.com/zhang-zongwei1/pedestrian-air-conditioning.git
git@gitee.com:zhang-zongwei1/pedestrian-air-conditioning.git
zhang-zongwei1
pedestrian-air-conditioning
人行空调
master

搜索帮助