You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**[`methods`](#methods)**|`Array`|`[ 'GET', 'HEAD' ]`| Allows to pass the list of HTTP request methods accepted by the middleware |
66
-
|**[`headers`](#headers)**|`Array\|Object\|Function`|`undefined`| Allows to pass custom HTTP headers on each request. |
67
-
|**[`index`](#index)**|`Boolean\|String`|`index.html`| If `false` (but not `undefined`), the server will not respond to requests to the root URL. |
68
-
|**[`mimeTypes`](#mimetypes)**|`Object`|`undefined`| Allows to register custom mime types or extension mappings. |
69
-
|**[`publicPath`](#publicpath)**|`String`|`output.publicPath` (from a configuration) | The public path that the middleware is bound to. |
70
-
|**[`stats`](#stats)**|`Boolean\|String\|Object`|`stats` (from a configuration) | Stats options object or preset name. |
71
-
|**[`serverSideRender`](#serversiderender)**|`Boolean`|`undefined`| Instructs the module to enable or disable the server-side rendering mode. |
72
-
|**[`writeToDisk`](#writetodisk)**|`Boolean\|Function`|`false`| Instructs the module to write files to the configured location on disk as specified in your `webpack` configuration. |
73
-
|**[`outputFileSystem`](#outputfilesystem)**|`Object`|[`memfs`](https://github.com/streamich/memfs)| Set the default file system which will be used by webpack as primary destination of generated files. |
|**[`methods`](#methods)**|`Array`|`[ 'GET', 'HEAD' ]`| Allows to pass the list of HTTP request methods accepted by the middleware |
66
+
|**[`headers`](#headers)**| `Array\| Object\| Function` |`undefined`| Allows to pass custom HTTP headers on each request. |
67
+
|**[`index`](#index)**| `Boolean\| String` |`index.html`| If `false` (but not `undefined`), the server will not respond to requests to the root URL. |
68
+
|**[`mimeTypes`](#mimetypes)**|`Object`|`undefined`| Allows to register custom mime types or extension mappings. |
69
+
|**[`mimeTypeDefault`](#mimetypedefault)**|`String`|`undefined`| Allows to register a default mime type when we can't determine the content type. |
70
+
|**[`publicPath`](#publicpath)**|`String`|`output.publicPath` (from a configuration) | The public path that the middleware is bound to. |
71
+
|**[`stats`](#stats)**| `Boolean\| String\| Object` |`stats` (from a configuration) | Stats options object or preset name. |
72
+
|**[`serverSideRender`](#serversiderender)**|`Boolean`|`undefined`| Instructs the module to enable or disable the server-side rendering mode. |
73
+
|**[`writeToDisk`](#writetodisk)**| `Boolean\| Function` |`false`| Instructs the module to write files to the configured location on disk as specified in your `webpack` configuration. |
74
+
|**[`outputFileSystem`](#outputfilesystem)**|`Object`|[`memfs`](https://github.com/streamich/memfs)| Set the default file system which will be used by webpack as primary destination of generated files. |
74
75
75
76
The middleware accepts an `options` Object. The following is a property reference for the Object.
0 commit comments