mfe-apps 是一个基于 Webpack WMF 的项目示例,支持多框架整合,以 React 项目为基座(理论上不限 React,其他框架都是可以),其它框架 为子应用,目前包含 Preact,Vue,Solid,Lit。此项目采用 Pnpm 的 workspace 管理 monorepo 。
mfe-apps is an example micro fronted project based on Webpack Module Federation.
the mfe-apps contain four projects, the shell is based on react framework, other three project is based on different framework and embed to the shell application.
Use the package manager pnpm
to install packages.
pnpm --filter=* install
Start the projects:
- first run the mfe projects:
pnpm --filter=*-mfe run start
- run the shell projects:
pnpm --filter=react-shell run start
Build projects:
pnpm --filter=* run build:prod
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please make sure to update tests as appropriate.
Curry Tang
Project Link: https://github.com/twn39/mfe-apps
Distributed under the MIT License. See LICENSE
for more information.