plugins.ReactRefreshPluginConfig
ReactRefreshPlugin configuration options.
↳ ReactRefreshPluginConfig
• Optional
hmr: boolean
Whether to enable Hot Module Replacement.
packages/repack/src/types.ts:130
• 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'.
packages/repack/src/types.ts:113
• Optional
https: Object
HTTPS options. If specified, the server will use HTTPS, otherwise HTTP.
Name | Type | Description |
---|---|---|
cert? |
string |
Path to certificate when running server on HTTPS. |
key? |
string |
Path to certificate key when running server on HTTPS. |
packages/repack/src/types.ts:121
• platform: string
packages/repack/src/webpack/plugins/ReactRefreshPlugin.ts:18
• port: number
Port under which to run the development server. See: {@link DEFAULT_PORT}.