vite-plugin-head
Version:
Modify, add, delete Metadata in the head element.
19 lines (18 loc) • 475 B
TypeScript
interface IAttr {
[key: string]: string;
}
/**
* add,remove,update attrs for yourself.
*/
declare type TransformLinkHook = (attrs: IAttr, href: string | undefined) => IAttr;
interface IVitePluginHeadOption {
cssPreload?: boolean;
title?: string;
transformLink?: TransformLinkHook;
}
declare const _default: (option: IVitePluginHeadOption) => {
name: string;
enforce: string;
transformIndexHtml(html: string): string;
};
export default _default;