/spaservices-snowpack

ASP.NET Core SPA Services Extensions for Snowpack

Primary LanguageC#Apache License 2.0Apache-2.0

SpaServices.SnowpackDevServer

CI Build Nuget

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.

Usage:

app.UseSpa(
    spa =>
    {
        spa.Options.SourcePath = "ClientApp";

        if (env.IsDevelopment())
        {
            spa.UseSnowpackDevServer(npmScript: "start");
        }
    });

Known issues

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).

Copyright

Includes code taken directly from Microsoft.AspNetCore.SpaServices.Extensions. This includes all source files included from the aspnetcore submodule.

License

Available under Apache License 2.0