mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-20 01:07:23 +00:00
13 lines
361 B
TypeScript
13 lines
361 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export function tailwindPlugins(bundledDev: boolean) {
|
|
const plugins = tailwindcss();
|
|
if (bundledDev) {
|
|
for (const plugin of plugins) {
|
|
// Rolldown lacks Vite ModuleNodes/server; bundled dev rebuilds from addWatchFile dependencies instead.
|
|
delete plugin.hotUpdate;
|
|
}
|
|
}
|
|
return plugins;
|
|
}
|