File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/Microsoft.AspNetCore.SpaServices Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ This is [documented in detail on the Webpack site](https://webpack.github.io/doc
636636#### Passing options to the Webpack Hot Middleware client
637637
638638You can configure the [ Webpack Hot Middleware client] ( https://github.com/glenjamin/webpack-hot-middleware#client )
639- by modifying your ` UseWebpackDevMiddleware ` call to include ` HotModuleReplacementClientOptions ` :
639+ by using the ` HotModuleReplacementClientOptions ` property on ` WebpackDevMiddlewareOptions ` :
640640
641641``` csharp
642642app .UseWebpackDevMiddleware (new WebpackDevMiddlewareOptions {
@@ -647,7 +647,9 @@ app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions{
647647});
648648```
649649
650- ** Note** : The ` path ` option will be ignored, because it is controlled by the ` HotModuleReplacementEndpoint ` setting.
650+ For the list of available options, please see [ Webpack Hot Middleware docs] ( https://github.com/glenjamin/webpack-hot-middleware#client ) .
651+
652+ ** Note** : The ` path ` option cannot be overridden this way - it is controlled by the ` HotModuleReplacementEndpoint ` setting.
651653
652654## Routing helper: MapSpaFallbackRoute
653655
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class WebpackDevMiddlewareOptions
3131public bool ReactHotModuleReplacement { get ; set ; }
3232
3333/// <summary>
34- /// Specifies additional options to be passed to the Webpack Hot Middleware client
34+ /// Specifies additional options to be passed to the Webpack Hot Middleware client, if used.
3535/// </summary>
3636public IDictionary < string , string > HotModuleReplacementClientOptions { get ; set ; }
3737
You can’t perform that action at this time.
0 commit comments