storybook/docs/snippets/common/storybook-main-using-existing-config.js.mdx
2020-08-09 01:41:24 +01:00

14 lines
285 B
Plaintext

```js
// .storybook/main.js
const path = require('path');
// 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 } };
},
};
```