mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Minor doc tweaks
This commit is contained in:
@@ -636,7 +636,7 @@ This is [documented in detail on the Webpack site](https://webpack.github.io/doc
|
||||
#### Passing options to the Webpack Hot Middleware client
|
||||
|
||||
You can configure the [Webpack Hot Middleware client](https://github.com/glenjamin/webpack-hot-middleware#client)
|
||||
by modifying your `UseWebpackDevMiddleware` call to include `HotModuleReplacementClientOptions`:
|
||||
by using the `HotModuleReplacementClientOptions` property on `WebpackDevMiddlewareOptions`:
|
||||
|
||||
```csharp
|
||||
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
|
||||
@@ -647,7 +647,9 @@ app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
|
||||
});
|
||||
```
|
||||
|
||||
**Note**: The `path` option will be ignored, because it is controlled by the `HotModuleReplacementEndpoint` setting.
|
||||
For the list of available options, please see [Webpack Hot Middleware docs](https://github.com/glenjamin/webpack-hot-middleware#client).
|
||||
|
||||
**Note**: The `path` option cannot be overridden this way - it is controlled by the `HotModuleReplacementEndpoint` setting.
|
||||
|
||||
## Routing helper: MapSpaFallbackRoute
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Microsoft.AspNetCore.SpaServices.Webpack
|
||||
public bool ReactHotModuleReplacement { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Specifies additional options to be passed to the Webpack Hot Middleware client
|
||||
/// Specifies additional options to be passed to the Webpack Hot Middleware client, if used.
|
||||
/// </summary>
|
||||
public IDictionary<string, string> HotModuleReplacementClientOptions { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user