histoire
Version:
A fast story book powered by Vite
19 lines • 949 B
TypeScript
import type { Plugin as VitePlugin } from 'vite';
import type { Context } from '../context.js';
import type { BrowserRuntimePaths } from './resolve-paths.js';
export interface HistoireVitePluginOptions {
/** Whether the config is built for the node-side (collecting) server. */
isServer: boolean;
/** Whether the config drives a Vitest browser runtime instead of the app. */
browserRuntime?: boolean;
/** Project module paths the browser runtime needs. */
browserRuntimePaths: BrowserRuntimePaths;
}
/**
* Builds the main Histoire Vite plugin: base aliases, dep optimizer setup, dev
* server file permissions, story hot updates and the dev HTML documents.
* @param ctx The histoire context.
* @param options Plugin options (see {@link HistoireVitePluginOptions}).
*/
export declare function createHistoireVitePlugin(ctx: Context, options: HistoireVitePluginOptions): VitePlugin;
//# sourceMappingURL=core-plugin.d.ts.map