mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 22:01:26 +08:00
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
import { configure } from '@storybook/mithril';
|
|
import { setOptions } from '@storybook/addon-options';
|
|
|
|
setOptions({
|
|
hierarchyRootSeparator: /\|/,
|
|
});
|
|
|
|
function loadStories() {
|
|
const req = require.context('../src/stories', true, /\.stories\.js$/);
|
|
req.keys().forEach(filename => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|