Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

tailwind.ts

14 lines475 Bytes

1import tailwindcss from "@tailwindcss/vite";
2​
3export function tailwindPlugins(bundledDev: boolean) {
4 const plugins = tailwindcss();
5 if (bundledDev) {
6 for (const plugin of plugins) {
7 // This hook expects Vite ModuleNodes and a server, which Rolldown does
8 // not supply. Bundled dev tracks Tailwind's addWatchFile dependencies
9 // and rebuilds CSS when those files change without this hook.
10 delete plugin.hotUpdate;
11 }
12 }
13 return plugins;