feat: 升级storybook版本

This commit is contained in:
2024-11-02 16:54:27 +08:00
parent af9491e698
commit 8caac6f37a
4 changed files with 785 additions and 756 deletions

View File

@@ -6,17 +6,21 @@ export const isDev = mode === 'development';
/** @type { import('@storybook/html-webpack5').StorybookConfig } */
const config = {
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)', '../apps/**/*.mdx', '../apps/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-webpack5-compiler-swc',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'@storybook/addon-mdx-gfm'
],
framework: {
name: '@storybook/html-webpack5',
options: {},
},
webpackFinal: async (config) => {
const newConfig = {
...config,
@@ -67,5 +71,7 @@ const config = {
};
return newConfig;
},
docs: {}
};
export default config;

View File

@@ -10,6 +10,8 @@ const preview = {
},
},
},
tags: ['autodocs']
};
export default preview;