2018-05-02 00:54:35 +03:00

17 lines
453 B
JavaScript

import { configure } from '@storybook/html';
import { setOptions } from '@storybook/addon-options';
setOptions({
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);