Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

fuzzykiller/spaservices-vitejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaServices.ViteJsDevServer

CI Build

Brings plug'n'play support for Vite.js to ASP.NET Core. Vite.js is an opinionated build tool that enables lightning-fast development by relying on non-bundled JavaScript modules.

Caveats:

The HMR WebSocket setup is not relative to the web root in Vite.js. This means it cannot reliably work with the ASP.NET Core development reverse proxy.

That’s why a NuGet package will not be properly published for now.

Usage:

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

        if (env.IsDevelopment())
        {
            spa.UseViteJsDevServer(npmScript: "dev");
        }
    });

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

About

ASP.NET Core SPA Services Extensions for Vite.js

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages