histoire
Version:
A fast story book powered by Vite
21 lines • 990 B
TypeScript
import type { InlineConfig } from 'vite';
import type { Context } from '../context.js';
export interface ViteConfigWithPlugins {
viteConfig: InlineConfig;
viteConfigFile: string | null;
}
export interface GetViteConfigWithPluginsOptions {
/** Builds the config for a Vitest browser runtime instead of the app. */
browserRuntime?: boolean;
/** Builds the config for a story collection run. */
collecting?: boolean;
}
/**
* Builds the full Vite config Histoire runs on, for every mode: app dev server,
* production build, node-side collection and Vitest browser runtimes.
* @param isServer Whether the config drives the node-side (collecting) server.
* @param ctx The histoire context.
* @param options Config options (see {@link GetViteConfigWithPluginsOptions}).
*/
export declare function getViteConfigWithPlugins(isServer: boolean, ctx: Context, options?: GetViteConfigWithPluginsOptions): Promise<ViteConfigWithPlugins>;
//# sourceMappingURL=config.d.ts.map