ocrcc-chatbox/.storybook/config.js
Gavin Foster 02d52921ad Storybook (#122)
* adding storybook

* update webpack config

* Update package.json

* udpating build script
2019-06-20 20:43:09 -04:00

10 lines
280 B
JavaScript

import { configure } from '@storybook/react';
// 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);