初始化游戏运营后台
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import type { StorybookConfig } from '@storybook/react-vite';
|
||||
|
||||
const config: StorybookConfig = {
|
||||
framework: {
|
||||
name: '@storybook/react-vite',
|
||||
options: {},
|
||||
},
|
||||
stories: ['../src/**/*.stories.@(ts|tsx)'],
|
||||
addons: ['@storybook/addon-docs', '@storybook/addon-a11y', '@storybook/addon-vitest'],
|
||||
viteFinal: (viteConfig) => {
|
||||
if (viteConfig.build) {
|
||||
viteConfig.build.outDir = undefined;
|
||||
viteConfig.build.emptyOutDir = false;
|
||||
if (viteConfig.build.rollupOptions) {
|
||||
viteConfig.build.rollupOptions.input = undefined;
|
||||
}
|
||||
}
|
||||
if (viteConfig.experimental) {
|
||||
viteConfig.experimental.renderBuiltUrl = undefined;
|
||||
}
|
||||
return viteConfig;
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user