2021-03-28 21:22:00 +08:00
|
|
|
|
// .fes.js 只负责管理编译时配置,只能使用plain Object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
access: {
|
|
|
|
|
roles: {
|
|
|
|
|
admin: ["*"]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
layout: {
|
|
|
|
|
title: "Fes.js",
|
2022-01-04 16:19:17 +08:00
|
|
|
|
footer: 'Created by MumbleFE',
|
2021-03-28 21:22:00 +08:00
|
|
|
|
multiTabs: false,
|
|
|
|
|
navigation: 'mixin',
|
|
|
|
|
menus: [{
|
|
|
|
|
name: 'index',
|
|
|
|
|
}, {
|
2022-05-11 16:55:28 +08:00
|
|
|
|
title: "子应用",
|
2021-03-28 21:22:00 +08:00
|
|
|
|
children: [{
|
2022-05-11 16:55:28 +08:00
|
|
|
|
name: 'micro-index'
|
2021-03-28 21:22:00 +08:00
|
|
|
|
},{
|
2022-05-11 16:55:28 +08:00
|
|
|
|
name: 'micro-test'
|
2021-03-28 21:22:00 +08:00
|
|
|
|
}]
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
qiankun: {
|
|
|
|
|
main: {
|
|
|
|
|
apps: [
|
|
|
|
|
{
|
2022-05-11 16:55:28 +08:00
|
|
|
|
name: 'micro', // 唯一 id
|
2021-03-28 21:22:00 +08:00
|
|
|
|
entry: '//localhost:8001', // html entry
|
|
|
|
|
props: {} // 传递给子应用的数据
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
require.resolve('../../../fes-plugin-model/lib'),
|
|
|
|
|
require.resolve('../../../fes-plugin-layout/lib'),
|
|
|
|
|
require.resolve('../../../fes-plugin-access/lib'),
|
|
|
|
|
require.resolve('../../../fes-plugin-qiankun/lib'),
|
2022-05-11 17:53:57 +08:00
|
|
|
|
],
|
|
|
|
|
presets: [
|
|
|
|
|
require.resolve('../../../fes-build-vite/lib'),
|
2021-03-28 21:22:00 +08:00
|
|
|
|
]
|
|
|
|
|
};
|