Skip to content

Commit 6fbb915

Browse files
committed
perf: enable uno autoimport in storybook
1 parent ee16cb0 commit 6fbb915

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nuxt.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export default defineNuxtConfig({
5656
},
5757

5858
unocss: {
59-
autoImport: false,
59+
// Storybook doesn't mount app.vue (where `uno.css` is imported),
60+
// so disable this property only in non-storybook environments.
61+
autoImport: isStorybook,
6062
},
6163

6264
devtools: { enabled: true },

0 commit comments

Comments
 (0)