mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
10 lines
280 B
JavaScript
10 lines
280 B
JavaScript
import { configure } from '@storybook/mithril';
|
|
|
|
// automatically import all files ending in *.stories.js
|
|
const req = require.context('../stories', true, /.stories.js$/);
|
|
function loadStories() {
|
|
req.keys().forEach(filename => req(filename));
|
|
}
|
|
|
|
configure(loadStories, module);
|