Added 'a11y' and 'source' addons to storybook as well as more stories

This commit is contained in:
orangemug
2020-06-03 09:52:54 +01:00
parent 624ccb5b00
commit 90dfbf37e0
17 changed files with 594 additions and 6 deletions
+11 -3
View File
@@ -2,15 +2,23 @@ const rules = require('../config/webpack.rules');
module.exports = {
stories: ['../stories/**/*.stories.js'],
addons: ['@storybook/addon-actions', '@storybook/addon-links'],
addons: [
'@storybook/addon-actions',
'@storybook/addon-links',
'@storybook/addon-a11y/register',
'@storybook/addon-storysource',
],
webpackFinal: async config => {
// do mutation to the config
console.log("config.module", config.module);
return {
...config,
module: {
...config.module,
rules
rules: [
...config.module.rules,
...rules,
]
}
};
},