2020-06-01 17:09:32 +02:00
|
|
|
const rules = require('../config/webpack.rules');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
stories: ['../stories/**/*.stories.js'],
|
2020-06-03 10:52:54 +02:00
|
|
|
addons: [
|
|
|
|
'@storybook/addon-actions',
|
|
|
|
'@storybook/addon-links',
|
|
|
|
'@storybook/addon-a11y/register',
|
|
|
|
'@storybook/addon-storysource',
|
|
|
|
],
|
2020-06-01 17:09:32 +02:00
|
|
|
webpackFinal: async config => {
|
|
|
|
// do mutation to the config
|
2020-06-03 10:52:54 +02:00
|
|
|
console.log("config.module", config.module);
|
2020-06-01 17:09:32 +02:00
|
|
|
|
|
|
|
return {
|
|
|
|
...config,
|
|
|
|
module: {
|
2020-06-03 10:52:54 +02:00
|
|
|
rules: [
|
|
|
|
...config.module.rules,
|
|
|
|
...rules,
|
|
|
|
]
|
2020-06-01 17:09:32 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|