1 Star 0 Fork 1

KINGK / dmj-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 846 Bytes
一键复制 编辑 原始数据 按行查看 历史
KINGK 提交于 2020-11-30 16:23 . fc
module.exports = {
//路径前缀
publicPath: "/",
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();
},
//开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理
devServer: {
port: 8082,
proxy: {
'/api': {
//服务接口地址
target: 'http://47.104.216.143:8083',
// target: 'http://localhost:8083',
ws: true,
pathRewrite: {
'^/api': '/'
}
}
}
}
};
JavaScript
1
https://gitee.com/lpinfo/dmj-admin.git
git@gitee.com:lpinfo/dmj-admin.git
lpinfo
dmj-admin
dmj-admin
master

搜索帮助