generated from thzxcx/vue3
38 lines
911 B
TypeScript
38 lines
911 B
TypeScript
/*
|
|
* @Author: zhaojinfeng 121016171@qq.com
|
|
* @Date: 2023-06-15 13:22:59
|
|
* @LastEditors: zhaojinfeng 121016171@qq.com
|
|
* @LastEditTime: 2023-06-21 11:18:51
|
|
* @FilePath: \vue3\.storybook\main.ts
|
|
* @Description:
|
|
*/
|
|
import type { StorybookConfig } from "@storybook/vue3-vite"
|
|
import Unocss from 'unocss/vite'
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ["../stories/*.stories.@(js|jsx|ts|tsx)"],
|
|
addons: [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials",
|
|
"@storybook/addon-interactions",
|
|
],
|
|
core: {
|
|
builder: '@storybook/builder-vite', // 👈 The builder enabled here.
|
|
},
|
|
framework: {
|
|
name: "@storybook/vue3-vite",
|
|
options: {},
|
|
},
|
|
docs: {
|
|
autodocs: "tag",
|
|
defaultName: '文档',
|
|
},
|
|
viteFinal(config) {
|
|
config.plugins?.push(Unocss())
|
|
// Add other configuration here depending on your use case
|
|
return config
|
|
},
|
|
}
|
|
|
|
export default config
|