8c5e2a53a9
refs https://github.com/TryGhost/Toolbox/issues/594 - we're moving all the external apps into a different folder so we can keep `ghost/` for internal code
28 lines
632 B
TypeScript
28 lines
632 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",
|
|
},
|
|
// staticDirs: ['../public/fonts'],
|
|
async viteFinal(config, options) {
|
|
config.resolve.alias = {
|
|
crypto: require.resolve('rollup-plugin-node-builtins'),
|
|
}
|
|
return config;
|
|
},
|
|
};
|
|
export default config;
|