1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 23:26:22 +09:00
mastodon/storybook/config.js
2017-06-04 16:26:07 +02:00

17 lines
435 B
JavaScript

import { configure } from '@storybook/react';
import React from 'react';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/javascript/styles/application.scss';
import './storybook.scss';
addLocaleData(en);
let req = require.context('./stories/', true, /.story.js$/);
function loadStories () {
req.keys().forEach((filename) => req(filename));
}
configure(loadStories, module);