mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:11:49 +08:00
22 lines
477 B
Plaintext
22 lines
477 B
Plaintext
```js
|
|
// .storybook/main.js
|
|
|
|
export default {
|
|
stories: ['../src/**/*.stories.@(js|ts)'],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-interactions',
|
|
],
|
|
framework: {
|
|
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-webpack5)
|
|
name: '@storybook/your-framework',
|
|
options: {
|
|
legacyRootApi: true,
|
|
strictMode: true,
|
|
legacyRootApi: true,
|
|
},
|
|
},
|
|
};
|
|
```
|