storybook/docs/snippets/common/storybook-main-using-existing-config.js.mdx
2021-05-07 11:44:58 +09:00

13 lines
255 B
Plaintext

```js
// .storybook/main.js
// your app's webpack.config.js
const custom = require('../webpack.config.js');
module.exports = {
webpackFinal: (config) => {
return { ...config, module: { ...config.module, rules: custom.module.rules } };
},
};
```