storybook-vue-csf-addon
此專案是從 storybook-vue-addon
分叉而來的
🚧 開發中 🚧
安裝
npm i -D storybook-vue-csf-addon
// vite.config.ts
import Starter from 'storybook-vue-csf-addon/vite'
export default defineConfig({
plugins: [
Starter({ /* options */ }),
],
})
範例: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 */ }],
],
})
此模組適用於 Nuxt 2 和 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()],
})