npm.io
0.0.1-beta.1 • Published 3 years ago

storybook-vue-csf-addon

Licence
MIT
Version
0.0.1-beta.1
Deps
1
Size
21 kB
Vulns
0
Weekly
0
Stars
1

storybook-vue-csf-addon

Work in progress

Install

npm i -D storybook-vue-csf-addon
Vite
// vite.config.ts
import Starter from 'storybook-vue-csf-addon/vite'

export default defineConfig({
  plugins: [
    Starter({ /* options */ }),
  ],
})

Example: playground/


Rollup
// rollup.config.js
import Starter from 'storybook-vue-csf-addon/rollup'

export default {
  plugins: [
    Starter({ /* options */ }),
  ],
}


Webpack
// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('storybook-vue-csf-addon/webpack')({ /* options */ })
  ]
}


Nuxt
// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    ['storybook-vue-csf-addon/nuxt', { /* options */ }],
  ],
})

This module works for both Nuxt 2 and Nuxt Vite


Vue CLI
// vue.config.js
module.exports = {
  configureWebpack: {
    plugins: [
      require('storybook-vue-csf-addon/webpack')({ /* options */ }),
    ],
  },
}


esbuild
// esbuild.config.js
import { build } from 'esbuild'
import Starter from 'storybook-vue-csf-addon/esbuild'

build({
  plugins: [Starter()],
})


Keywords