Eptagone / Vite.AspNetCore

Small library to integrate Vite into ASP.NET projects
MIT License
264 stars 35 forks source link

Plan to use *.esproj for Javascript templates (similar to MS templates). This will will enable integrated TS debugging in MS IDE #131

Open mediabuff opened 2 months ago

mediabuff commented 2 months ago

Title says all !

Eptagone commented 2 months ago

Hi. Let me know if I'm wrong but as far as I know .esproj files are for SPA projects with JavaScript, right? SPA projects don't need this package.

mediabuff commented 2 weeks ago

.esproj are any JavaScript frontend project. Microsoft templates only support react, angular and vue. I plan to use a template for web component LitElement with vite bundles for UI development and ASP.net as backend.

Eptagone commented 1 week ago

Hello @mediabuff. Projects using ASP.NET as backend doesn't need this library. Unless you are using ASP.NET MVC, Razor or Blazor, then you can use Microsoft.AspNetCore.SpaServices.Extensions instead with Vite like the SPA templates do.

MS offers templates for React, Angular and Vue as you said but you can use whatever JS Framework you want by editing the templates or creating a new project from scratch. That library is not limited to a specific JS framework. It only enables a middleware and run the specified npm script.