1 Star 0 Fork 0

zhangbo/pc-tpl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 801 Bytes
一键复制 编辑 原始数据 按行查看 历史
HAHA 提交于 2020-08-20 16:43 . muji
const path = require('path')
function resolve(dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
lintOnSave: false,
// 修改 src 目录 为 examples 目录
devServer: {
proxy: {
'/bs': {
target: ' http://pc.tecqm.com',
changeOrigin: true,
pathRewrite: {
'^/bs': '/',
},
},
},
},
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html',
},
},
chainWebpack: config => {
config.module
.rule('js')
.include.add(/packages/)
.end()
.include.add(/examples/)
.end()
.use('babel')
.loader('babel-loader')
.tap(options => {
return options;
});
},
transpileDependencies: []
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangbo18/pc-tpl.git
git@gitee.com:zhangbo18/pc-tpl.git
zhangbo18
pc-tpl
pc-tpl
tuan-gou-dev

搜索帮助