mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
25 lines
576 B
JavaScript
25 lines
576 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);
|
|
|
|
//function loadStories() {
|
|
// require("../src/stories");
|
|
//}
|
|
|
|
// 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);
|