Skip to content

Commit 02b3bf0

Browse files
committed
🤖 Simplify vite config - remove apply() filter
Remove the apply() filter on Tailwind plugin as it may be too restrictive.
1 parent ab9b744 commit 02b3bf0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

vite.config.mts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,7 @@ const basePlugins = [
3939
plugins: babelPlugins,
4040
},
4141
}),
42-
{
43-
...tailwindcss(),
44-
// Prevent Tailwind from applying to worker builds
45-
apply(config, { command }) {
46-
// Only apply to client builds, not workers
47-
return !config.build?.ssr && config.worker === undefined;
48-
},
49-
},
42+
tailwindcss(),
5043
];
5144

5245
export default defineConfig(({ mode }) => ({

0 commit comments

Comments
 (0)