1 Star 0 Fork 3.9K

jueke / pig-ui

forked from lengleng / pig-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 814 Bytes
一键复制 编辑 原始数据 按行查看 历史
pig777 提交于 2020-11-01 22:08 . tag 2.10.1 support spring boot 2.3.5
/**
* 配置该文件可以参考:
* https://cli.vuejs.org/zh/config/#%E7%9B%AE%E6%A0%87%E6%B5%8F%E8%A7%88%E5%99%A8
*
*/
const url = 'http://pig-gateway:9999'
// 基础路径,发布前修改这里,当前配置打包出来的资源都是相对路径
let publicPath = './'
module.exports = {
publicPath: publicPath,
lintOnSave: true,
productionSourceMap: false,
css: {
// 忽略 CSS order 顺序警告
extract: { ignoreOrder: true }
},
chainWebpack: config => {
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
entry
.add('classlist-polyfill')
.end()
},
// 配置转发代理
devServer: {
proxy: {
'/': {
target: url,
ws: true,
pathRewrite: {
'^/': '/'
}
}
}
}
}
JavaScript
1
https://gitee.com/jueke2/pig-ui.git
git@gitee.com:jueke2/pig-ui.git
jueke2
pig-ui
pig-ui
master

搜索帮助