Comments (5)
- 样式重复插件这个问题,依赖于你们是否有统一的样式?如果有统一的样式,建议在主工程中加入就可以了。
- 如果要做样式隔离,可以采用 iframe 模式。如果是非 iframe 模式,得从规范解决问题,如每个子应用添加对应的前缀。
from mooa.
好的,关于样式隔离,可能现阶段只能通过 iframe 的方式了。
关于标签重复插入的问题,可能是我没有描述清楚:
如上图所示是 mooa.phodal.com 这个示例网站的头部里内容,每次进入统一应用都会重新把 script 和 style
插入一遍,造成很多重复的标签。
from mooa.
@gaoupon 重新检测了一下,发现是删除逻辑有问题。
from mooa.
@gaoupon 我这边修复了这个问题,你可以再试试
from mooa.
👍我这边没问题了
from mooa.
Related Issues (20)
- 我想问下你mooa.phodal.com的例子和examples有哪些差异? HOT 1
- communication between micro-frontends HOT 2
- 关于微前端的一些探讨 HOT 1
- 子应用公共样式不起作用 HOT 3
- 新建子应用hell ,路由跳转过去报错 HOT 8
- Passing data on application startup HOT 5
- child application css not rendering HOT 1
- Recovering from failure. HOT 3
- 支持React HOT 10
- The serve command requires to be run in an Angular project, but a project definition could not be found. HOT 3
- 大佬我根据read.me和克隆下来的代码都没有跑起来,能出一个更详细的教程吗,感谢 HOT 3
- Not able to find the latest version HOT 3
- 关于主应用使用nginx部署后如何加载子应用问题 HOT 2
- 开发模式下主应用如何加载使用lazyload的子应用 HOT 14
- 试用mooa框架出问题,window:mooa.bootstrapping事件不调用 HOT 1
- 不同业务模块之间如何发送通知 HOT 2
- Phodal 你好, mooa支持angular6吗? HOT 2
- 几点疑问想请教一下 HOT 2
- mooa implemetation HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mooa.