generated from thzxcx/vue3
Initial commit
This commit is contained in:
37
.storybook/main.ts
Normal file
37
.storybook/main.ts
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* @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
|
Reference in New Issue
Block a user