Handle publicPath=/ in HMR. Fixes #1191.

This commit is contained in:
Steve Sanderson
2017-08-24 17:52:35 -07:00
parent e5f1299239
commit e2030fb1fa
2 changed files with 7 additions and 2 deletions

View File

@@ -17,7 +17,10 @@ namespace Microsoft.AspNetCore.Builder
private static readonly JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver(),
// Note that the aspnet-webpack JS code specifically expects options to be serialized with
// PascalCase property names, so it's important to be explicit about this contract resolver
ContractResolver = new DefaultContractResolver(),
TypeNameHandling = TypeNameHandling.None
};