当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 1.5K

dannyjones / Saber
暂停

forked from smallchill / Saber 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 723 Bytes
一键复制 编辑 原始数据 按行查看 历史
smallchill 提交于 2019-03-17 18:54 . :zap:修改反向代理端口
// 基础路径 注意发布之前要先修改这里
let url = 'http://localhost'
module.exports = {
lintOnSave: true,
productionSourceMap: false,
chainWebpack: (config) => {
//忽略的打包文件
config.externals({
'vue': 'Vue',
'vue-router': 'VueRouter',
'vuex': 'Vuex',
'axios': 'axios',
'element-ui': 'ELEMENT',
})
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
entry
.add('classlist-polyfill')
.end()
entry
.add('@/mock')
.end()
},
devServer: {
proxy: {
'/api': {
target: url,
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
}
}
JavaScript
1
https://gitee.com/DannyJones/Saber.git
git@gitee.com:DannyJones/Saber.git
DannyJones
Saber
Saber
master

搜索帮助