mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:11:20 +08:00
17 lines
453 B
JavaScript
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);
|