Created
November 2, 2017 12:07
-
-
Save viniciusdacal/5a67e9ddc243111c3ea69bb289d484de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { configure } from '@storybook/react'; | |
const reqSrc = require.context('../src', true, /.stories.jsx$/); | |
function loadStories() { | |
reqSrc.keys().forEach(filename => reqSrc(filename)); | |
} | |
configure(loadStories, module); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment