mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
28 lines
598 B
TypeScript
28 lines
598 B
TypeScript
import type { StorybookConfig } from "@storybook/react-vite";
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
|
|
addons: [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials",
|
|
"@storybook/addon-interactions",
|
|
{
|
|
name: '@storybook/addon-styling',
|
|
},
|
|
],
|
|
framework: {
|
|
name: "@storybook/react-vite",
|
|
options: {},
|
|
},
|
|
docs: {
|
|
autodocs: "tag",
|
|
},
|
|
async viteFinal(config, options) {
|
|
config.resolve!.alias = {
|
|
crypto: require.resolve('rollup-plugin-node-builtins')
|
|
}
|
|
return config;
|
|
}
|
|
};
|
|
export default config;
|