mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 05:01:11 +08:00
# 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
25 lines
646 B
JavaScript
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;
|
|
},
|
|
};
|