万纯 14c00a8ffc feat: 优化plugin-access和plugin-layout
1. access插件提供找不到页面时的处理器
2. 文件路径转路由路径优化
3. 提供按需加载插件配置dynamicImport
2021-03-04 19:48:07 +08:00

58 lines
1.0 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// .fes.js 只负责管理编译时配置只能使用plain Object
export default {
base: '/foo/',
define: {
__DEV__: false
},
html: {
title: '海贼王'
},
publicPath: '/',
access: {
roles: {
admin: ["/"]
}
},
request: {
dataField: 'result'
},
mock: {
prefix: '/v2'
},
proxy: {
'/v2': {
'target': 'https://api.douban.com/',
'changeOrigin': true,
},
},
layout: {
title: "Fes.js",
footer: 'Created by MumbelFe',
multiTabs: false,
menus: [{
name: 'index'
}, {
name: 'onepiece'
}, {
name: 'store'
}, {
name: 'simpleList'
}]
},
locale: {
legacy: true
},
devServer: {
port: 8080
},
enums: {
status: [['0', '无效的'], ['1', '有效的']]
},
vuex: {
strict: true
},
dynamicImport: true
};