-
Notifications
You must be signed in to change notification settings - Fork 10
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
是否支持主应用和子应用的样式隔离 #5
Comments
因为依赖了 vite 官方的 @vitejs/plugin-legacy 插件,生产环境的 js,css 沙箱是很稳定的。 开发环境没有 js 沙箱,css 沙箱是实验性的 |
请问你的主应用,子应用都是 vite 项目吗? |
你好,我开始用的是另外一个qiankun适配vite的插件 vite-plugin-qiankun,看到这个插件所以想测试下,目前只看到主应用的import-html-entry中报错,我后面有时间再看下哈。 |
嗯好,你这个 entry 的报错应该是注册的子应用 app 名字没对上。 |
这个问题我也遇到过了,已经解决,这个问题主要是vite版本太低导致的。 |
qiankun目前在使用中存在主应用和子应用样式污染问题。这个插件是否支持主应用和子应用的样式隔离,比如:
1、子应用挂载在body的dialog样式丢失(由于样式在qiankun-header中,但弹窗加载到body层级,header中不存在子应用弹窗的样式);
2、主应用和子应用相同的class、标签样式(比如body标签样式);
3、子应用重写的一些样式被主应用样式覆盖;
4、...
The text was updated successfully, but these errors were encountered: