umi-plugin-qiankun-fork
v2.35.5
Published
umi plugin for qiankun fork, solve new problem
Downloads
6
Readme
@umi-plugin-qiankun-fork
umi plugin for qiankun.
See our website @umijs/plugin-qiankun for more information.
fork 原因:
1.qiankun变量promise返回的routes配置,虽然能自动插入到根路由(/)但是不能控制哪些路由不插入,所以增加了insert:false 配置,配置后该路由不会插入根路由,其他用法和官方一致
2.qiankun变量promise返回的routes配置里,microAppProps不能单独配置路由的base,虽然有base入口,但是官方会自动加上运行时的路由,所以增加routeBase配置,如果配置了优先routeBase
比如:
{
apps,
routes:[
{
path: '/test/a/b',
microApp: 'test',
insert:false,
microAppProps: {
routeBase:'/test'
},
},
]
}
Install
Using npm:
$ npm install --save-dev umi-plugin-qiankun-fork
or using yarn:
$ yarn add umi-plugin-qiankun-fork --dev