Norbert de Langen f9abc6a986
Merge branch 'next' into tech/remove-deprecations-6
# Conflicts:
#	addons/events/src/deprecated.js
#	addons/options/src/register.ts
#	examples/official-storybook/stories/core/decorators.stories.js
#	examples/official-storybook/stories/deprecated/addon-events.stories.js
#	lib/addons/src/make-decorator.test.ts
#	lib/api/src/modules/layout.ts
#	lib/cli/src/generate.js
#	lib/core/package.json
2020-03-31 09:40:58 +02:00

25 lines
646 B
JavaScript

const path = require('path');
module.exports = {
addons: [
'@storybook/addon-a11y',
'@storybook/addon-storysource',
'@storybook/addon-actions',
'@storybook/addon-docs',
'@storybook/addon-links',
'@storybook/addon-knobs',
'@storybook/addon-viewport',
'@storybook/addon-backgrounds',
],
stories: ['../stories/**/*.stories.js'],
webpackFinal: async (config) => {
config.module.rules.push({
test: [/\.stories\.js$/, /index\.js$/],
loaders: [require.resolve('@storybook/source-loader')],
include: [path.resolve(__dirname, '../')],
enforce: 'pre',
});
return config;
},
};