1 Star 0 Fork 0

xuekl / quick-el-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
xuekl 提交于 2022-10-17 13:35 . tree去除data判断
const path = require('path')
const { config } = require('process')
const resolve = dir => path.join(__dirname, dir)
module.exports = {
productionSourceMap: false,
devServer: {
open: true,
proxy: {
'/proxy': {
// target: 'http://47.103.215.221:9800',
target: 'http://192.168.31.210:8081',
// target: 'http://192.168.1.109:8080',
changeOrigin: true,
pathRewrite: {
'^/proxy': ''
// '^/proxy':'y'
}
}
}
},
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
chainWebpack: config => {
config.module
.rule('js')
.include
.add(resolve('src'))
.add(resolve('packages'))
.end()
.use('babel')
.loader('babel-loader')
.options({
presets: [
['@babel/preset-env', {
modules: false,
"targets": {
"chrome": "58",
"ie": "11"
}
}]
]
}).tap(option => {
return option
})
}
}
1
https://gitee.com/xuekl/quick-el-admin.git
git@gitee.com:xuekl/quick-el-admin.git
xuekl
quick-el-admin
quick-el-admin
master

搜索帮助