UNPKG
react-shelf
Version:
latest (0.1.0)
0.1.0
Swipable shelf
github.com/julesforrest/react-shelf
julesforrest/react-shelf
react-shelf
/
.storybook
/
config.js
10 lines
(7 loc)
•
281 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ configure }
from
"@storybook/react"
;
// automatically import all files ending in *.stories.js
const
req =
require
.
context
(
"../stories"
,
true
,
/\.stories\.jsx$/
);
function
loadStories
(
) { req.
keys
().
forEach
(
filename
=>
req
(filename)); }
configure
(loadStories,
module
);