@nrwl/web:dev-server

Serve a web application.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.

Options

allowedHosts

string

This option allows you to whitelist services that are allowed to access the dev server.

buildTarget

string

Target which builds the application.

baseHref

string

Base url for the application being built.

host

string
Default: localhost

Host to listen on.

hmr

boolean
Default: false

Enable hot module replacement.

liveReload

boolean
Default: true

Whether to reload the page on change, using live-reload.

memoryLimit

number

Memory limit for type checking service process in MB.

maxWorkers

number

Number of workers to use for type checking.

open

boolean
Default: false

Open the application in the browser.

port

number
Default: 4200

Port to listen on.

publicHost

string

Public URL where the application will be served.

ssl

boolean
Default: false

Serve using HTTPS.

sslKey

string

SSL key to use for serving HTTPS.

sslCert

string

SSL certificate to use for serving HTTPS.

watch

boolean
Default: true

Watches for changes and rebuilds application.