Replies: 2 comments 2 replies
-
1、modern.js 中的 performance.chunkSplit 拆分 lib 很好用,能否提供参考可添加自定义属性? <script defer src="lib-xx.js"></script>
<link href="/static/css/main.css" rel="stylesheet"> 现在需要添加 exclude 等 <script defer src="lib-xx.js" exclude ></script>
<link href="/static/css/main.css" rel="stylesheet" exclude> 参考 micro-app 文档说明:https://micro-zoe.github.io/micro-app/docs.html#/zh-cn/configure?id=exclude PS:不使用自定义 HTML(是否可以使用 Document.tsx 来实现?) 需求:一般情况下,做微前端,子应用所依赖的公共库都是固定的版本,另外再全局样式中也是固定的(只有在单独使用子应用时才会使用,开发的时候),即在主应用中排除(公共库、全局样式) |
Beta Was this translation helpful? Give feedback.
1 reply
-
2、如何导致JS会编译进行文件中 /** @jsxRuntime classic */
/** @jsx jsxCustomEvent */
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import jsxCustomEvent from '@micro-zoe/micro-app/polyfill/jsx-custom-event'; 发现 jsxCustomEvent 不会编译进文件中,会被删掉,如何处理该项。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
micro-app 文档地址:https://micro-zoe.github.io/micro-app/
后续评论中描述相关问题或者咨询。
Beta Was this translation helpful? Give feedback.
All reactions