Quellcode durchsuchen

Update storybook file autoload (#2057)

master
usagi-f vor 7 Jahren
committed by Eugen
Ursprung
Commit
d90b1650d8
1 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. +3
    -4
      storybook/config.js

+ 3
- 4
storybook/config.js Datei anzeigen

@@ -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);

Laden…
Abbrechen
Speichern