DevServerPlugin configuration options.
Omit
<DevServerConfig
, "context"
>
↳ DevServerPluginConfig
• Optional
cert: string
Path to certificate when running server on HTTPS.
Omit.cert
packages/repack/src/types.ts:95
• Optional
enabled: boolean
Whether to run development server or not.
Omit.enabled
packages/repack/src/webpack/plugins/DevServerPlugin/DevServerPlugin.ts:22
• Optional
hmr: boolean
Whether Hot Module Replacement / React Refresh should be enabled. Defaults to true
.
Omit.hmr
packages/repack/src/webpack/plugins/DevServerPlugin/DevServerPlugin.ts:26
• 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'.
Omit.host
packages/repack/src/types.ts:89
• Optional
https: boolean
Whether to run server on HTTPS instead of HTTP.
Omit.https
packages/repack/src/types.ts:93
• Optional
key: string
Path to certificate key when running server on HTTPS.
Omit.key
packages/repack/src/types.ts:97
• platform: string
Target application platform.
Omit.platform
packages/repack/src/server/BaseDevServer.ts:24
• port: number
Port under which to run the development server. See: DEFAULT_PORT.
Omit.port