Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.02 KB

mfe-host.md

File metadata and controls

60 lines (37 loc) · 1.02 KB
title description
@nrwl/angular:mfe-host generator
Generate a Host Angular Micro Frontend Application.

@nrwl/angular:mfe-host

Generate a Host Angular 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 app with configuration in place for MFE. If remotes is provided, attach the remote app to this app's configuration.:

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

Options

name (required)

Type: string

The name to give to the host Angular app.

host

Type: string

The name of the host app to attach this host app to.

port

Type: string

The port on which this app should be served.