mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 00:33:37 +08:00
28 lines
643 B
TypeScript
28 lines
643 B
TypeScript
import type { StorybookConfig } from '@storybook/react-vite'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { mergeConfig } from 'vite'
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-docs',
|
|
'@storybook/addon-themes',
|
|
'@chromatic-com/storybook',
|
|
],
|
|
framework: '@storybook/react-vite',
|
|
core: {
|
|
disableWhatsNewNotifications: true,
|
|
},
|
|
docs: {
|
|
defaultName: 'Documentation',
|
|
},
|
|
async viteFinal(config) {
|
|
return mergeConfig(config, {
|
|
plugins: [tailwindcss()],
|
|
})
|
|
},
|
|
}
|
|
|
|
export default config
|