Dev-server builder

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

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

Options

--aot#

Build using Ahead of Time compilation.

Type boolean

--baseHref#

Base url for the application being built.

Type string

--browserTarget#

Target to serve.

Type string

--commonChunk#

Use a separate bundle containing code used across multiple bundles.

Type boolean

--deployUrl#

URL where files will be deployed.

Type string

--disableHostCheck#

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

Type boolean

--evalSourceMap#

Output in-file eval sourcemaps.

Type boolean

--hmr#

Enable hot module replacement.

Type boolean

--hmrWarning#

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

Type boolean
Default true

--host#

Host to listen on.

Type string
Aliases localhost

--liveReload#

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

Type boolean
Default true

--open#

Opens the url in default browser.

Type boolean
Aliases o

--optimization#

Defines the optimization level of the build.

Type boolean

--poll#

Enable and define the file watching poll time period in milliseconds.

Type number

--port#

Port to listen on.

Type number
Default 4200

--progress#

Log progress to the console while building.

Type boolean

--proxyConfig#

Proxy configuration file.

Type string

--publicHost#

Specify the URL that the browser client will use.

Type string

--servePath#

The pathname where the app will be served.

Type string

--servePathDefaultWarning#

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

Type boolean
Default true

--sourceMap#

Output sourcemaps.

Type boolean

--ssl#

Serve using HTTPS.

Type boolean

--sslCert#

SSL certificate to use for serving HTTPS.

Type string

--sslKey#

SSL key to use for serving HTTPS.

Type string

--vendorChunk#

Use a separate bundle containing only vendor libraries.

Type boolean

--vendorSourceMap#

Resolve vendor packages sourcemaps.

Type boolean
Default false

--verbose#

Adds more details to output logging.

Type boolean

--watch#

Rebuild on change.

Type boolean
Default true