2 Star 5 Fork 0

cc/Apps.Ts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 861 Bytes
一键复制 编辑 原始数据 按行查看 历史
cc 提交于 2020-08-17 13:56 . 更新模块系统
// vue.config.js
module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
// 为生产环境修改配置...
} else {
// 为开发环境修改配置...
}
},
devServer: {
open: true,
host: 'localhost',
port: 3000,
https: false,
//以上的ip和端口是我们本机的;下面为需要跨域的
// proxy: { //配置跨域
// '/': {
// target: process.env.VUE_APP_URL, //这里后台的地址模拟的;应该填写你们真实的后台接口
// ws: true,
// changOrigin: true, //允许跨域
// pathRewrite: {
// '^/': '' //请求的时候使用这个api就可以
// }
// }
// }
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/Core_Cc/Apps.Ts.git
[email protected]:Core_Cc/Apps.Ts.git
Core_Cc
Apps.Ts
Apps.Ts
Branch_dev

搜索帮助