You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
686 B
31 lines
686 B
import { mergeConfig } from 'vite';
|
|
import svgr from 'vite-plugin-svgr';
|
|
|
|
/** @type { import('@storybook/react-vite').StorybookConfig } */
|
|
const config = {
|
|
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.tsx'],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-onboarding',
|
|
'@storybook/addon-interactions',
|
|
],
|
|
framework: {
|
|
name: '@storybook/react-vite',
|
|
options: {},
|
|
},
|
|
docs: {
|
|
autodocs: 'tag',
|
|
},
|
|
viteFinal: config =>
|
|
mergeConfig(config, {
|
|
plugins: [
|
|
svgr({
|
|
svgrOptions: {
|
|
native: false,
|
|
},
|
|
}),
|
|
],
|
|
}),
|
|
};
|
|
export default config;
|
|
|