-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathmain.ts
More file actions
25 lines (20 loc) · 789 Bytes
/
main.ts
File metadata and controls
25 lines (20 loc) · 789 Bytes
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
import type {StorybookConfig} from '@storybook/react-vite';
import {nxViteTsPaths} from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import {mergeConfig} from 'vite';
import react from '@vitejs/plugin-react';
const config: StorybookConfig = {
stories: ['../src/**/*.@(mdx|stories.@(js|jsx|ts|tsx))'],
addons: ['@storybook/addon-essentials', '@storybook/addon-a11y'],
framework: {
name: '@storybook/react-vite',
options: {},
},
viteFinal: async config =>
mergeConfig(config, {
plugins: [react(), nxViteTsPaths()],
}),
};
export default config;
// To customize your Vite configuration you can use the viteFinal field.
// Check https://storybook.js.org/docs/react/builders/vite#configuration
// and https://nx.dev/recipes/storybook/custom-builder-configs