import { Options } from 'html-webpack-plugin';
import { Override } from "../types";
export declare type HtmlTagsType = {
headTags: any[];
bodyTags: any[];
};
export interface HtmlOptions extends Options {
/**
* 基于项目的根目录 index.html url
* @default src/index.html
*/
template?: string;
/**
* 当前文件路径名 基于 src 如 `pc/index` `index-pc` 不填为匹配路径
* @default [folder]/[filename]
*/
chunk?: string;
/**
* 基于项目的根目录 favicon url
* @default src/favicon.ico
*/
favicon?: string | false;
/**
* externals 文件插入到html
*/
files?: {
/**
* 插入 css
*/
css?: string[];
/**
* 插入 js
*/
js?: string[];
};
/**
* 自定义 头部脚步内容 headTags[] bodyTags[]
*/
tags?: HtmlTagsType;
/**
* 网站语言
*/
lang?: string;
}
export declare type InitHtmlType = Override;
export declare const initHtml: (o?: Options) => InitHtmlType;