2018-11-01 16:21:19 +02:00

19 lines
491 B
JavaScript

import { configure, addDecorator } from '@storybook/html';
import { withOptions } from '@storybook/addon-options';
addDecorator(
withOptions({
hierarchyRootSeparator: /\|/,
})
);
// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /.stories.js$/);
function loadStories() {
// Make welcome story default
require('../stories/index.stories');
req.keys().forEach(filename => req(filename));
}
configure(loadStories, module);