When you publish a project to a folder, all of the static assets get copied into a merged wwwroot, where the _content folder is created by a razor component libraries linked to your project. You should be able to write a post-publish script that invokes tailwind in that folder to output a merged CSS file. It might be trickier with other publishing targets, but see this SO answer for something that might work for all of them.