深入浅出FE(八)微前端初探(上)
一. 什么是微前端? Techniques, strategies and recipes for building a modern web app with multiple teams using different JavaScript frameworks . — Micro Frontends 微前端是一种多个团队通过独立发布功能的方式来共同构建现代化 web 应用的技术手段及方法策略。 上面是阿里的qiankun框架中引用的微前端定义,微前端第一次提出于在2016年的底的 ThoughtWorks Technology Radar 。 那微前端出现为了解决什么问题呢? 笔者看了很多资料认为微前端是为了解决不同版本及不同框架的多个应用共存及增量部署问题。 Tom Söderlund 在 这篇文章 中提到了如何实现微前端的七种方式: Here’s a few different approaches to implementing micro frontends: The best solution I’ve seen is the Single-SPA “meta framework” to combine multiple frameworks on the same page without refreshing the page (see this demo