A dynamic, multi-environment module federation boilerplate.
- Multi-environment support using
NormalModuleReplacementPlugin
- Loads remote apps dynamically
- Uses my shareable configs to reduce boilerplate
- ~100% Lighthouse Score
Install package dependencies and link local packages together:
yarn
Install hooks:
yarn prepare
Run dev environment for host and remote:
yarn dev
Build and serve host and remote for Netlify:
yarn build
Note: Configure script in Netlify to auto-run via push to main
branch.
Build host and remote for Express:
yarn prod
Serve host and remote for Express:
yarn serve
Commit changes using conventional changelog:
yarn commit
Lint host and remote files:
yarn lint
Note: release.yml
will run this before versioning and publishing.
MIT