Created
July 19, 2019 04:11
-
-
Save tobychung/d95843f319645a77bd165a8326e89957 to your computer and use it in GitHub Desktop.
Config file for storybook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { configure } from '@storybook/html'; | |
import '../src/scss/main.scss'; | |
function loadStories() { | |
const myDOM = document.createElement('div'); | |
myDOM.className = 'bg'; | |
myDOM.style.cssText = 'margin-top: 200px; display: flex; justify-content: center; align-items: center;'; | |
require(`../stories/a.js`); | |
require(`../stories/b.js`); | |
require(`../stories/c.js`); | |
} | |
configure(loadStories, module); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment