当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 1.7K

taodai/Avue-cli
暂停

forked from smallwei/Avue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
smallwei 提交于 2018-11-27 17:40 . fix ele style
// 基础路径 注意发布之前要先修改这里
let baseUrl = './'
module.exports = {
baseUrl: baseUrl, // 根据你的实际情况更改这里
lintOnSave: true,
devServer: {
publicPath: baseUrl // 和 baseUrl 保持一致
},
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('@/mock')
.end()
},
transpileDependencies: ['avue-plugin-transfer', 'avue-plugin-ueditor'],
//配置转发代理
devServer: {
// proxy: {
// '/api': {
// target: 'http://127.0.0.1:3000',
// ws: true,
// pathRewrite: {
// '^/api': '/api'
// }
// },
// }
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/taodai/avue.git
git@gitee.com:taodai/avue.git
taodai
avue
Avue-cli
master

搜索帮助