feat: 升级storybook版本
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -10,6 +10,8 @@ const preview = {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
tags: ['autodocs']
|
||||
};
|
||||
|
||||
export default preview;
|
||||
|
||||
Reference in New Issue
Block a user