2 Star 26 Fork 10

jishulin / 技术林-流程引擎

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
lijianlin 提交于 2020-08-27 13:54 . 优化登录及提交关闭窗口
// 基础路径 注意发布之前要先修改这里
let baseUrl = '.'
const url = 'https://www.jishulincs.cn'
// const url = 'http://localhost:8088'
const websocketurl = 'ws://wf'
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = {
baseUrl: baseUrl, // 根据你的实际情况更改这里
lintOnSave: true,
productionSourceMap: false,
// configureWebpack: config => {
// if (process.env.NODE_ENV === 'production') {
// return {
// plugins: [
// new BundleAnalyzerPlugin()
// ]
// }
// }
// },
devServer: {
proxy: {
'/wf': {
target: url,
ws: true,
pathRewrite: {
'^/wf': '/'
}
},
'/websocketapi': {
target: websocketurl,
ws: true,
pathRewrite: {
'^/websocketapi': '/'
}
}
}
},
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()
}
}
JavaScript
1
https://gitee.com/jishulin/jishulincs-workflow.git
git@gitee.com:jishulin/jishulincs-workflow.git
jishulin
jishulincs-workflow
技术林-流程引擎
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891