0.1.0 • Published 10 months ago

tcg-boilerplates-mfe v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

My App

Steps to integrate another microfrontend into mfe host

  1. Add a new entry in the file config/mf.manifest.json for the new remote microfrontend, say remote2
  2. Add new route entry in src/app.tsx for the new remote microfrontend.
  3. Add routes from the new remote microfrontend into the route list at src/routes.ts.
  4. Add assets from the new remote microfrontend into the assets map at src/utils/assets-map.ts. (NOTE: handle assetsMap and assetsMapOnServer)

npm run deployee :- start the server in the background and if we want to stop then npm run pm2:stop.

npm start | npm run start :- will start the server

npm run reload :-will stop and start again server.