Coding Shorts: Using Vite in ASP.NET Core Projects



Coding Shorts: Using Vite in ASP.NET Core Projects

Coding Shorts: Using Vite in ASP.NET Core Projects

Lots of client-side projects are now using Vite for their development server. Whether it is React, Vue, Svelte kit or other projects, Vite is more important than ever. In this coding short, I show you how you can use Vite at development time in an ASP.NET Core project:

00:00 – Introduction
00:59 – The Vite Project
03:30 – Release Builds to ASP.NET Core
04:54 – Adding Vite Project to a Razor Page
08:02 – Using the Vite Server on a Razor Page
10:03 – Problems with Routing
11:47 – Mapping a Fallback Route
12:57 – Wrapping Up

Blog Article: https://wildermuth.com/2023/01/18/vite-in-asp-net-core-projects/
Source code: https://github.com/shawnwildermuth/codingshorts/tree/main/aspnetvite

If you like this video, you might like other videos in my Instructional Videos:
– https://www.youtube.com/playlist?list=PLtOvnDRdH12e3vOq4zvpI2cKsancIwMcP

You can hire me too! You can reach me at my new website:
– https://shawn.wildermuth.com

Comments are closed.