UNPKG

histoire

Version:

A fast story book powered by Vite

25 lines • 1.25 kB
import type { Context } from '../context.js'; /** * Builds one of the two emitted entry documents (`index.html` and * `__sandbox.html`) around a built JS/CSS chunk pair. * * @param jsEntryFile File name of the entry chunk. * @param cssEntryFile File name of the style asset. * @param variables Extra fragments to splice into the document. * @param variables.HEAD Extra tags injected in `<head>` (preload/prefetch links). * @param ctx Histoire context, for the theme and the resolved Vite base. */ export declare function generateEntryHtml(jsEntryFile: string, cssEntryFile: string, variables: { HEAD?: string; }, ctx: Context): string; /** * Emits `<link rel="preload|prefetch">` tags for the given built chunks. * * @param prefetchScripts File names of the built chunks to link. * @param rel Link relation to emit. * @param ctx Histoire context, for the resolved Vite base. */ export declare function generateScriptLinks(prefetchScripts: string[], rel: string, ctx: Context): string; /** Bridge entry loads surface styles without booting an explorer, collector, or story runtime. */ export declare function generateEmbedHtml(jsEntryFile: string, ctx: Context, cssEntryFile?: string): string; //# sourceMappingURL=html.d.ts.map