histoire
Version:
A fast story book powered by Vite
13 lines • 770 B
TypeScript
import type { ViteDevServer, InlineConfig as ViteInlineConfig } from 'vite';
import type { Context } from '../context.js';
/**
* Builds the Vite config of the final bundle: the histoire app entries plus the
* overrides that must win over anything a user plugin sets (no externals, a
* dependency-closed vendor chunk, no code splitting of the CSS…).
*
* @param ctx Histoire context holding the resolved user config.
* @param collectServer The dev server used for story collection: `@vitejs/plugin-vue`
* is re-pointed at it so template inlining stays disabled during the build.
*/
export declare function createBuildViteConfig(ctx: Context, collectServer: ViteDevServer, outputRoot?: string): Promise<ViteInlineConfig>;
//# sourceMappingURL=vite-config.d.ts.map