1 Star 0 Fork 1.5K

metrcy / Saber

forked from smallchill / Saber 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
smallchill 提交于 2019-07-06 08:04 . :tada:增加端口号配置
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: {
// 端口配置
port: 1888,
// 反向代理配置
proxy: {
'/api': {
target: 'http://localhost',
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
}
}
JavaScript
1
https://gitee.com/metrcy/Saber.git
git@gitee.com:metrcy/Saber.git
metrcy
Saber
Saber
master

搜索帮助