@nrwl/angular:mfe-host

Create an Angular Host Micro Frontend Application

Usage

nx generate mfe-host ...
nx g host ... #same

By default, Nx will search for mfe-host in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nrwl/angular:mfe-host ...

Show what will be generated without writing to disk:

nx g mfe-host ... --dry-run

Examples

Create an Angular application with configuration in place for MFE. If the remotes option is provided, attach the remote application to this application's configuration:

nx g @nrwl/angular:mfe-host appName --remotes=remote1

Options

dynamic

boolean
Default: false

Should the host application use dynamic federation?

name

Required
string

The name to give to the host Angular application.

remotes

Array<anything>

The names of the remote applications to add to the host.