We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
旧umi项目改造, 子应用的index.html和index.html内<script src="./umi.138702b9.js"></script>的umi.138702b9.js加载成功, 但是 <script src="./umi.138702b9.js"></script> 执行需要加载的其他css,js均不能加载。
<script src="./umi.138702b9.js"></script>
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
子应用 "@ice/stark-app": "^1.5.0",
"@ice/stark-app": "^1.5.0",
// src/app.tsx
console.log('------------------------------------------'); console.log(`--------------${isInIcestark()}----------------------`); // 在 icestark 中修改渲染的节点 export function modifyClientRenderOpts(memo: any) { return { ...memo, rootElement: isInIcestark() ? getMountNode() : memo.rootElement, }; } // 为 icestark 注册生命周期 export function render(oldRender: any) { if (isInIcestark()) { registerAppEnter(() => { oldRender(); }); registerAppLeave(() => { ReactDOM.unmountComponentAtNode(getMountNode()); }); } else { oldRender(); } }
使用旧方案注册生命周期函数 主应用加载后依然报
/src/.umi/core/plugin.ts 文件中看不到mount,unmount的key
const plugin = new Plugin({ validKeys: ['modifyClientRenderOpts','patchRoutes','rootContainer','render','onRouteChange','__mfsu','getInitialState','initialStateConfig','request',], }); export { plugin };
No branches or pull requests
旧umi项目改造, 子应用的index.html和index.html内
<script src="./umi.138702b9.js"></script>
的umi.138702b9.js加载成功,但是 <script src="./umi.138702b9.js"></script> 执行需要加载的其他css,js均不能加载。
The text was updated successfully, but these errors were encountered: