Skip to content
New issue

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

子应用 CSS 文件重复加载 #878

Open
xinyufyj opened this issue Jul 12, 2024 · 0 comments
Open

子应用 CSS 文件重复加载 #878

xinyufyj opened this issue Jul 12, 2024 · 0 comments

Comments

@xinyufyj
Copy link

xinyufyj commented Jul 12, 2024

描述bug

  1. 子应用的 index.html 文件中有 外链 css:assets/index.8cbb3cbf.css,且子应用某个 js 文件也会动态导入改 CSS 文件
    子应用 index.html
    子应用打包后的某个js文件

  2. 通过 wujie 集成子应用,shadowRoot 的 head 里面会有两部分 index.8cbb3cbf.css 这个文件的样式。出现这种情况的原因是:解析入口 HTML 后 wujie 会请求拿到 css 样式,JS 代码中依赖了这个 css 文件然后又会动态请求一次;
    css重复加载

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant