mirror of
https://github.com/nomadic-labs/safesupport-chatbox
synced 2025-12-16 15:33:23 +00:00
Storybook (#122)
* adding storybook * update webpack config * Update package.json * udpating build script
This commit is contained in:
committed by
Benjamin Boudreau
parent
2c7653ba8b
commit
02d52921ad
9
.storybook/config.js
Normal file
9
.storybook/config.js
Normal file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user