mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2026-02-09 01:24:55 +00:00
Change all Microsoft.AspNet.* namespaces and references to Microsoft.AspNetCore.*
This commit is contained in:
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace Microsoft.AspNet.SpaServices.Webpack
|
||||
namespace Microsoft.AspNetCore.SpaServices.Webpack
|
||||
{
|
||||
// Based on https://github.com/aspnet/Proxy/blob/dev/src/Microsoft.AspNetCore.Proxy/ProxyMiddleware.cs
|
||||
// Differs in that, if the proxied request returns a 404, we pass through to the next middleware in the chain
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.NodeServices;
|
||||
using Microsoft.AspNet.SpaServices.Webpack;
|
||||
using Microsoft.AspNetCore.NodeServices;
|
||||
using Microsoft.AspNetCore.SpaServices.Webpack;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
@@ -55,7 +55,7 @@ namespace Microsoft.AspNetCore.Builder
|
||||
appBuilder.UseMiddleware<ConditionalProxyMiddleware>(devServerInfo.PublicPath, proxyOptions);
|
||||
|
||||
// While it would be nice to proxy the /__webpack_hmr requests too, these return an EventStream,
|
||||
// and the Microsoft.Aspnet.Proxy code doesn't handle that entirely - it throws an exception after
|
||||
// and the Microsoft.AspNetCore.Proxy code doesn't handle that entirely - it throws an exception after
|
||||
// a while. So, just serve a 302 for those.
|
||||
appBuilder.Map(WebpackHotMiddlewareEndpoint, builder => {
|
||||
builder.Use(next => async ctx => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.AspNet.SpaServices.Webpack {
|
||||
namespace Microsoft.AspNetCore.SpaServices.Webpack {
|
||||
public class WebpackDevMiddlewareOptions {
|
||||
public bool HotModuleReplacement { get; set; }
|
||||
public bool ReactHotModuleReplacement { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user