0.0.1-beta.1 ā€¢ Published 8 months ago

storybook-vue-csf-addon v0.0.1-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

storybook-vue-csf-addon

šŸš§ Work in progress šŸš§

Install

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

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

Example: playground/

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

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

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

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

This module works for both Nuxt 2 and Nuxt Vite

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

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

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