storybook/docs/snippets/common/storybook-main-using-existing-config.js.mdx
2021-11-09 01:41:54 +00:00

13 lines
261 B
Plaintext

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