File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Microsoft.AspNetCore.SpaServices/Webpack Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 44using Microsoft . AspNetCore . NodeServices ;
55using Microsoft . AspNetCore . SpaServices . Webpack ;
66using Newtonsoft . Json ;
7+ using Newtonsoft . Json . Serialization ;
78
89namespace Microsoft . AspNetCore . Builder
910{
@@ -87,7 +88,7 @@ public static void UseWebpackDevMiddleware(
8788 } ;
8889 var devServerInfo =
8990 nodeServices . InvokeExportAsync < WebpackDevServerInfo > ( nodeScript . FileName , "createWebpackDevServer" ,
90- JsonConvert . SerializeObject ( devServerOptions ) ) . Result ;
91+ JsonConvert . SerializeObject ( devServerOptions , new JsonSerializerSettings ( ) { ContractResolver = new DefaultContractResolver ( ) } ) ) . Result ;
9192
9293 // If we're talking to an older version of aspnet-webpack, it will return only a single PublicPath,
9394 // not an array of PublicPaths. Handle that scenario.
You can’t perform that action at this time.
0 commit comments