npm.io
0.1.0 • Published 3 years agoCLI

tcg-boilerplates-mfe

Licence
ISC
Version
0.1.0
Deps
7
Size
39 kB
Vulns
0
Weekly
0

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.