-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(storybook): basic storybook config works with slow way setup
slow way: https://storybook.js.org/basics/guide-vue/ AND fix bug: storybookjs/storybook#3267 (comment) Then should be good after some cleanup
- Loading branch information
Adam Chen Wei
committed
Oct 18, 2018
1 parent
ac31ad2
commit d154665
Showing
6 changed files
with
22,021 additions
and
128 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { configure } from '@storybook/vue'; | ||
|
||
import Vue from 'vue'; | ||
//import Vuex from 'vuex'; // Vue plugins | ||
|
||
// Import your custom components. | ||
//import Mybutton from '../src/stories/Button.vue'; | ||
import HelloWorld from '../src/components/HelloWorld.vue'; | ||
|
||
// Install Vue plugins. | ||
//Vue.use(Vuex); | ||
|
||
// Register custom components. | ||
Vue.component('HelloWorld', HelloWorld); | ||
|
||
function loadStories() { | ||
// You can require as many stories as you need. | ||
require('../src/stories'); | ||
} | ||
|
||
configure(loadStories, module); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const VueLoaderPlugin = require('vue-loader/lib/plugin') | ||
|
||
module.exports = (baseConfig, env, defaultConfig) => { | ||
|
||
defaultConfig.plugins.push(new VueLoaderPlugin()) | ||
|
||
return defaultConfig; | ||
}; |
Oops, something went wrong.