Tailwind 3 and ASP.NET Core
Install the Tailwind.Extensions.AspNetCore NuGet package.
It will automatically start Tailwind in watch
mode when you run your Blazor app (in development).
Use in conjunction with .NET 6’s new Hot Reload feature to see your changes reflected instantly in the browser.
@using Tailwind
if (app.Environment.IsDevelopment()){ app.RunTailwind("tailwind", "./");}
More details
Check out this blog post for more details: