-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathmain.ts
33 lines (32 loc) · 916 Bytes
/
main.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { StorybookConfig } from "@storybook/react-vite";
import vitePluginReact from "@vitejs/plugin-react";
const config: StorybookConfig = {
stories: ["../packages/jokul/**/*.stories.@(ts|tsx)"],
staticDirs: ["../storybook-public"],
addons: [
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
features: {
backgroundsStoryGlobals: true,
},
framework: {
name: "@storybook/react-vite",
options: {},
},
viteFinal: (config) => {
return {
...config,
plugins: [
...(config.plugins || []),
// Ensure Vite uses the correct plugin
vitePluginReact(),
],
css: {
preprocessorOptions: { scss: { api: "modern" } },
},
};
},
};
export default config;