Skip to main content
Version: 2x

Interface: DevServerOptions

Development server configuration options.

Used by DevServerPlugin, BaseDevServer, DevServer and DevServerProxy.

Hierarchy

Table of contents

Properties

Properties

cert

Optional cert: string

Path to certificate when running server on HTTPS.

Defined in

packages/repack/src/types.ts:95


enabled

Optional enabled: boolean

Whether to start development server.

Defined in

packages/repack/src/types.ts:84


hmr

Optional hmr: boolean

Whether to enable Hot Module Replacement.

Defined in

packages/repack/src/types.ts:99


host

Optional host: string

Hostname or IP address under which to run the development server. When left unspecified, it will listen on all available network interfaces, similarly to listening on '0.0.0.0'.

Defined in

packages/repack/src/types.ts:89


https

Optional https: boolean

Whether to run server on HTTPS instead of HTTP.

Defined in

packages/repack/src/types.ts:93


key

Optional key: string

Path to certificate key when running server on HTTPS.

Defined in

packages/repack/src/types.ts:97


port

port: number

Port under which to run the development server. See: DEFAULT_PORT.

Defined in

packages/repack/src/types.ts:91