mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 06:01:22 +08:00
32 lines
711 B
TypeScript
32 lines
711 B
TypeScript
import type { StorybookConfig } from '@storybook/react/types';
|
|
|
|
const config: StorybookConfig = {
|
|
stories: [{ directory: './src', titlePrefix: 'Demo' }],
|
|
logLevel: 'debug',
|
|
addons: [
|
|
'@storybook/react',
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-storysource',
|
|
'@storybook/addon-storyshots',
|
|
],
|
|
typescript: {
|
|
check: true,
|
|
checkOptions: {},
|
|
reactDocgenTypescriptOptions: {
|
|
propFilter: (prop) => ['label', 'disabled'].includes(prop.name),
|
|
},
|
|
},
|
|
core: {
|
|
builder: 'webpack4',
|
|
},
|
|
features: {
|
|
postcss: false,
|
|
modernInlineRender: true,
|
|
storyStoreV7: true,
|
|
buildStoriesJson: true,
|
|
babelModeV7: true,
|
|
},
|
|
};
|
|
|
|
module.exports = config;
|