Dev-server builder

This is the documentation for Angular 6.
You can switch to the latest version Angular 7.

ID: @angular-devkit/build-angular:dev-server

Options

browserTarget#

Target to serve.

Type string

port#

Port to listen on.

Type number
Default 4200

host#

Host to listen on.

Type string
Aliases localhost

proxyConfig#

Proxy configuration file.

Type string

ssl#

Serve using HTTPS.

Type boolean

sslKey#

SSL key to use for serving HTTPS.

Type string

sslCert#

SSL certificate to use for serving HTTPS.

Type string

open#

Opens the url in default browser.

Type boolean
Aliases o

liveReload#

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

Type boolean
Default true

publicHost#

Specify the URL that the browser client will use.

Type string

servePath#

The pathname where the app will be served.

Type string

disableHostCheck#

Don't verify connected clients are part of allowed hosts.

Type boolean

hmr#

Enable hot module replacement.

Type boolean

watch#

Rebuild on change.

Type boolean
Default true

hmrWarning#

Show a warning when the --hmr option is enabled.

Type boolean
Default true

servePathDefaultWarning#

Show a warning when deploy-url/base-href use unsupported serve path values.

Type boolean
Default true

optimization#

Defines the optimization level of the build.

Type boolean

aot#

Build using Ahead of Time compilation.

Type boolean

sourceMap#

Output sourcemaps.

Type boolean

evalSourceMap#

Output in-file eval sourcemaps.

Type boolean

vendorChunk#

Use a separate bundle containing only vendor libraries.

Type boolean

commonChunk#

Use a separate bundle containing code used across multiple bundles.

Type boolean

baseHref#

Base url for the application being built.

Type string

deployUrl#

URL where files will be deployed.

Type string

verbose#

Adds more details to output logging.

Type boolean

progress#

Log progress to the console while building.

Type boolean