Nuxt/examples/storybook/.storybook/config.js
2018-02-06 12:56:28 +01:00

22 lines
502 B
JavaScript

import 'vuetify/dist/vuetify.css'
import { configure } from '@storybook/vue'
import Vue from 'vue'
import Vuex from 'vuex'
import Vuetify from 'vuetify'
import MyButton from '../components/Button.vue'
Vue.use(Vuex)
Vue.use(Vuetify)
Vue.component('my-button', MyButton)
// Automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /.story.js$/)
function loadStories() {
req.keys().forEach((filename) => req(filename))
}
configure(loadStories, module)