UNPKG

@typed/content-hash

Version:

Content hash a directory of HTML/JS/CSS files and other static assets

33 lines 1.02 kB
import { HashPlugin } from '../HashPlugin'; export declare type HtmlAst = { readonly type: string; readonly tagName: string; readonly attributes: readonly HtmlAttribute[]; readonly children?: readonly HtmlAst[]; readonly content?: string; readonly position: { readonly start: { readonly index: number; readonly line: number; readonly column: number; }; readonly end: { readonly index: number; readonly line: number; readonly column: number; }; }; }; export declare type HtmlAttribute = { readonly key: string; readonly value: string; }; export declare type HtmlParseOptions = { readonly includePositions: true; }; export interface HtmlPuginOptions { readonly buildDirectory: string; readonly mainFields?: readonly string[]; } export declare function createHtmlPlugin({ buildDirectory, mainFields }: HtmlPuginOptions): HashPlugin; //# sourceMappingURL=html.d.ts.map