Skip to content

Commit ac42b1c

Browse files
committed
perf: remove copy vite plugin from storybook build
BREAKING CHANGE: something
1 parent 7f62c63 commit ac42b1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.storybook/main.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ const config: StorybookConfig = {
2121
name: "@storybook/vue3-vite",
2222
options: {},
2323
},
24+
viteFinal: (config, options) => {
25+
config.plugins = config.plugins?.filter(async (plugin) => {
26+
plugin = await plugin;
27+
28+
return typeof plugin === 'boolean' || Array.isArray(plugin) || plugin?.name !== 'vite-plugin-static-copy:build';
29+
});
30+
31+
return config;
32+
},
2433
};
2534

2635
export default config;

0 commit comments

Comments
 (0)