CozyBunneh / micro-frontend-module-federation

πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ Micro frontend Angular example using Module Federation πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

micro-frontend-module-federation πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ

πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ Micro frontend Angular example using Module Federation πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ

Howto

Shell

ng new shell
cd shell
npm i @angular-architects/module-federation --type host
npm i --save-dev ngx-build-plus

Then the correct changes has to be made to a lot of files but these are the most important ones:

  • webpack.config.js (needs to be added)
  • webpack.prod.config.js (needs to be added)
  • angular.json

Layout

ng new layout
cd layout
npm i @angular-architects/module-federation --type remote
npm i --save-dev ngx-build-plus

Then the correct changes has to be made to a lot of files but these are the most important ones:

  • webpack.config.js (needs to be added)
  • webpack.prod.config.js (needs to be added)
  • angular.json

About

πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ Micro frontend Angular example using Module Federation πŸ³οΈβ€βš§οΈπŸ³οΈβ€πŸŒˆ

License:MIT License


Languages

Language:TypeScript 69.3%Language:JavaScript 18.7%Language:HTML 10.4%Language:SCSS 1.6%