$ cnpm install @nuxtjs/storybook
@nuxtjs/storybook
dependency to your project:#using yarn
yarn add --dev @nuxtjs/storybook
# using npm
npm install --save-dev @nuxtjs/storybook
If you are using Nuxt < 2.14.0, you need to use
core-js@3
.nuxt-storybook
and storybook-static
to your .gitignore
:.nuxt-storybook
storybook-static
Then, add storybook
section in nuxt.config.js
:
export default {
storybook: {
// Options
}
}
See module options.
Now you can use nuxt storybook
to start:
# Using yarn
yarn nuxt storybook
# Using npm
npx nuxt storybook
yarn install
yarn dev
Copyright (c)
Copyright 2014 - 2017 © taobao.org |