Fix Storybook Vite outDir (#879)

This commit is contained in:
Evan Simkowitz 2024-09-26 15:37:33 -07:00 committed by GitHub
parent 7a9c867fed
commit fc87c3fc98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,9 @@ const config: StorybookConfig = {
const { tsImport } = await import("tsx/esm/api");
const electronViteConfig = (await tsImport("../electron.vite.config.ts", import.meta.url))
.default as ElectronViteConfig;
return mergeConfig(config, electronViteConfig.renderer as UserConfig);
const mergedConfig = mergeConfig(config, electronViteConfig.renderer as UserConfig);
mergedConfig.build.outDir = "storybook-static";
return mergedConfig;
},
staticDirs: [{ from: "../assets", to: "/assets" }],