mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 08:41:05 +08:00
26 lines
679 B
JavaScript
26 lines
679 B
JavaScript
module.exports = {
|
|
stories: ['../src/stories/**/*.stories.@(js|mdx)'],
|
|
logLevel: 'debug',
|
|
addons: [
|
|
'@storybook/addon-docs',
|
|
'@storybook/addon-controls',
|
|
'@storybook/addon-storysource',
|
|
'@storybook/addon-actions',
|
|
'@storybook/addon-interactions',
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-viewport',
|
|
'@storybook/addon-backgrounds',
|
|
'@storybook/addon-a11y',
|
|
],
|
|
core: {
|
|
builder: 'webpack4',
|
|
channelOptions: { allowFunction: false, maxDepth: 10 },
|
|
disableTelemetry: true,
|
|
},
|
|
staticDirs: ['../public'],
|
|
features: {
|
|
buildStoriesJson: true,
|
|
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom'),
|
|
},
|
|
};
|