Options

spa

boolean
Default: false

Redirect 404 errors to index.html (useful for SPA's)

buildTarget

string

Target which builds the application.

brotli

boolean
Default: false

Enable brotli compression

cors

boolean
Default: true

Enable CORS

cacheSeconds

number
Default: -1

Set cache time (in seconds) for cache-control max-age header. To disable caching, use -1. Caching defaults to disabled.

gzip

boolean
Default: false

Enable gzip compression

host

string
Default: localhost

Host to listen on.

maxParallel

number

Max number of parallel jobs.

parallel

boolean
Default: true

Build the target in parallel.

port

number
Default: 4200

Port to listen on.

proxyUrl

string

URL to proxy unhandled requests to.

proxyOptions

Default: {}

Options for the proxy used by http-server.

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.

staticFilePath

string

Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath

watch

boolean
Default: true

Watch for file changes.