Minor doc tweaks

This commit is contained in:
Steve Sanderson
2017-03-29 11:41:38 +01:00
parent ce40973859
commit ee601bed50
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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; }