28 lines
679 B
TypeScript
28 lines
679 B
TypeScript
/* eslint-disable storybook/no-uninstalled-addons */
|
|
import type { StorybookConfig } from "@storybook/vue3-vite";
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
addons: [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials",
|
|
"@storybook/addon-interactions",
|
|
"@storybook/addon-styling",
|
|
],
|
|
framework: {
|
|
name: "@storybook/vue3-vite",
|
|
options: {},
|
|
},
|
|
docs: {
|
|
autodocs: "tag",
|
|
},
|
|
async viteFinal(config) {
|
|
const { mergeConfig } = await import("vite");
|
|
|
|
return mergeConfig(config, {
|
|
assetsInclude: ["/sb-preview/runtime.js"],
|
|
});
|
|
},
|
|
};
|
|
export default config;
|