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

chnj1981 / Saber
暂停

forked from smallchill / Saber 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
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: 'http://localhost',
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/chnj1981/Saber.git
git@gitee.com:chnj1981/Saber.git
chnj1981
Saber
Saber
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891