buildPluginHtml.d.ts 571 B

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