Skip to content

Commit b395af9

Browse files
committed
[fix] add tailwind back to storybook
1 parent 8ef528b commit b395af9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.storybook/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const config: StorybookConfig = {
1515
async viteFinal(config) {
1616
// Use dynamic import to avoid CJS deprecation warning
1717
const { mergeConfig } = await import('vite')
18+
const { default: tailwindcss } = await import('@tailwindcss/vite')
1819

1920
// Filter out any plugins that might generate import maps
2021
if (config.plugins) {
@@ -39,6 +40,7 @@ const config: StorybookConfig = {
3940
// Replace plugins entirely to avoid inheritance issues
4041
plugins: [
4142
// Only include plugins we explicitly need for Storybook
43+
tailwindcss(),
4244
Icons({
4345
compiler: 'vue3',
4446
customCollections: {

0 commit comments

Comments
 (0)