feat: prerender crawlable portfolio artifacts
This commit is contained in:
21
scripts/prerender.d.mts
Normal file
21
scripts/prerender.d.mts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { ProductionInputs } from '../src/content/types.ts';
|
||||
|
||||
export interface ViteManifestEntry {
|
||||
file: string;
|
||||
src?: string;
|
||||
isEntry?: boolean;
|
||||
css?: string[];
|
||||
imports?: string[];
|
||||
}
|
||||
|
||||
export type ViteManifest = Record<string, ViteManifestEntry>;
|
||||
|
||||
export function parseExactConfigArgument(arguments_: string[]): string;
|
||||
export function assertExpectedDistInputs(distRoot: string): Promise<void>;
|
||||
export function assemblePrerenderedHtml(
|
||||
template: string,
|
||||
manifest: ViteManifest,
|
||||
markup: string,
|
||||
inputs: Readonly<ProductionInputs>,
|
||||
): string;
|
||||
export function prerender(configPath: string): Promise<void>;
|
||||
Reference in New Issue
Block a user