2021-03-01 15:06:11 +08:00

11 lines
571 B
TypeScript

import { Plugin, OutputChunk, RollupOutput } from 'rollup';
import { InternalResolver } from '../resolver';
import { UserConfig } from '../config';
export declare const createBuildHtmlPlugin: (root: string, indexPath: string, publicBasePath: string, assetsDir: string, inlineLimit: number, resolver: InternalResolver, shouldPreload: ((chunk: OutputChunk) => boolean) | null, config: UserConfig) => Promise<{
renderIndex: () => string;
htmlPlugin: null;
} | {
renderIndex: (bundleOutput: RollupOutput['output']) => Promise<string>;
htmlPlugin: Plugin;
}>;