about summary refs log tree commit diff
path: root/.storybook/config.js
blob: 45f33c06a6263b099d9acc1f85104e971182e260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { configure } from '@storybook/vue'

if (!process.env.JEST_WORKER_ID) {
  require('../assets/css/main.css')
}

const req = require.context('../components', true, /\.stories.js$/)
function loadStories() {
  req.keys().forEach(filename => req(filename))
}

configure(loadStories, module)