This examples loads a microfrontend into a shell:
Have a particular look at the following files:
README.md
: Shows how to install dependencies and how to start the exampleapps\mfe1\webpack.config.js
: Microfrontend configapps\shell\webpack.config.js
: Shell configapps\shell\src\app\app.routes.ts
: Lazy route for microfrontendapps\shell\src\decl.d.ts
: Typing for mapped Url pointing to microfrontendyarn
(!)*ng serve mfe1 -o
ng serve shell -o
mfe1
is started before shell
is loaded into the browserflights
in the shell
to load mfe1
* Please note, you must use yarn during the beta phase of CLI 11 b/c it allows to override dependencies to force the CLI into webpack 5.
Have a look at this article series about Module Federation