mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 06:51:46 +08:00
32 lines
685 B
Plaintext
32 lines
685 B
Plaintext
```js
|
|
// .storybook/main.js
|
|
|
|
export default {
|
|
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
staticDirs: ['../public'],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-essentials',
|
|
'@storybook/preset-create-react-app',
|
|
'@storybook/addon-interactions',
|
|
],
|
|
docs: {
|
|
autodocs: 'tag',
|
|
},
|
|
framework: {
|
|
name: '@storybook/react-webpack5',
|
|
options: {},
|
|
},
|
|
babel: async (options) => ({
|
|
// Update your babel configuration here
|
|
...options,
|
|
}),
|
|
|
|
webpackFinal: async (config, { configType }) => {
|
|
// Make whatever fine-grained changes you need
|
|
// Return the altered config
|
|
return config;
|
|
},
|
|
};
|
|
```
|