1 Star 0 Fork 0

Jdy/Big-Data-Demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 953 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhengyu 提交于 2020-06-12 09:23 . 提交 部分动态数据
// 配置路径别名
var path = require('path')
function resolve (dir) {
return path.join(__dirname, dir)
}
module.exports = {
// 配置基础链接地址,根据发布环境添加 '/preview/bin-admin'
publicPath: process.env.NODE_ENV === 'production'
? './'
: '/',
// dev跨域问题
devServer: {
proxy: {
'/overview': { target: 'http://localhost:8082/' },
'/public': { target: 'http://localhost:8082/' },
'/union': { target: 'http://localhost:8082/' },
'/map': { target: 'http://localhost:8082/' },
'/summary': { target: 'http://localhost:8082/' }
}
},
productionSourceMap: false,
lintOnSave: process.env.NODE_ENV !== 'production',
assetsDir: 'static',
filenameHashing: true, // 发布打包文件是否有哈希后缀
chainWebpack: config => {
config.resolve.alias
.set('@', resolve('src')) // key,value自行定义,比如.set('@@', resolve('src/components'))
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jdy_1022/Big-Data-Demo.git
[email protected]:jdy_1022/Big-Data-Demo.git
jdy_1022
Big-Data-Demo
Big-Data-Demo
master

搜索帮助