/fonts/Geist-SemiBold.woff2 referenced in /fonts/Geist-SemiBold.woff2 didn't resolve at build time, it will remain unchanged to be resolved at runtime
vite: { plugins: [ tailwindcss(), forceTailwindHMR({ tailwindPath: "pathToCssFileHere" }) ], }
export default function forceTailwindHMR(config = {}) { const { tailwindPath = "/src/tailwind.css", fileExtensions = ['.tsx', '.jsx', '.html', '.css'], } = config; return { name: "force-tailwind-hmr", async handleHotUpdate({ file, server, modules }) { if (fileExtensions.some((ext) => file.endsWith(ext))) { const tailwindModule = await server.moduleGraph.getModuleByUrl(tailwindPath); if (tailwindModule) { server.moduleGraph.invalidateModule(tailwindModule); return [...modules, tailwindModule]; } return modules; } }, };}