https://alfajs.io/
Github https://github.com/aliyun/alibabacloud-alfa
企业级的微前端体系化解决方案
image.png

  1. npm i @alicloud/alfa-react --save

创建微前端项目

https://github.com/aliyun/alibabacloud-alfa
https://alfajs.io/docs/quick-start.html#%E5%86%99%E5%9C%A8%E5%89%8D%E9%9D%A2

主应用

http://localhost:3000/ 访问到当前加载的两个子应用

  1. git clone https://github.com/aliyun/alibabacloud-alfa.git
  2. cd example/HostApp/ReactHost
  3. npm run start
  4. # you will visit app on http://localhost:3000/

子应用

  1. npm run install:example
  2. # react
  3. cd example/SubApp/React
  4. npm run start
  5. # you will visit app on http://localhost:8080/
  6. # vue
  7. cd example/SubApp/Vue
  8. npm run serve
  9. # you will visit app on http://localhost:8081/

react

vue