Brings plug'n'play support for Snowpack to ASP.NET Core. Snowpack is a build tool that enables lightning-fast development by not packing JS code at all.
app.UseSpa(
spa =>
{
spa.Options.SourcePath = "ClientApp";
if (env.IsDevelopment())
{
spa.UseSnowpackDevServer(npmScript: "start");
}
});
Because Microsoft.AspNetCore.SpaServices.Extensions
has
a bug with forwarding WebSocket connections in
ASP.NET Core 3.1, auto-refresh does not work in version 1.0 (for ASP.NET Core 3.1).
Includes code taken directly from Microsoft.AspNetCore.SpaServices.Extensions
. This includes
all source files included from the aspnetcore
submodule.
Available under Apache License 2.0