You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
658 B

import { compilation as compilationNS, Compiler } from 'webpack';
export declare type HTMLPluginData = {
assetTags: any;
outputName: string;
plugin: any;
};
export declare type HTMLLinkNode = {
rel?: string;
name?: string;
content?: string;
media?: string;
href?: string;
sizes?: string;
node: any;
};
export default class ModifyHtmlWebpackPlugin {
private modifyOptions;
constructor(modifyOptions?: {
inject?: boolean | Function;
});
modifyAsync(compiler: Compiler, compilation: compilationNS.Compilation, data: HTMLPluginData): Promise<HTMLPluginData>;
apply(compiler: Compiler): void;
}