Browse Source

Update storybook file autoload (#2057)

master
usagi-f 7 years ago
committed by Eugen
parent
commit
d90b1650d8
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      storybook/config.js

+ 3
- 4
storybook/config.js View File

@@ -14,11 +14,10 @@ window.storiesOf = storiesOf;
window.action = action;
window.React = React;

let req = require.context('./stories/', true, /.story.jsx$/);

function loadStories () {
require('./stories/loading_indicator.story.jsx');
require('./stories/button.story.jsx');
require('./stories/character_counter.story.jsx');
require('./stories/autosuggest_textarea.story.jsx');
req.keys().forEach((filename) => req(filename))
}

configure(loadStories, module);

Loading…
Cancel
Save