inject-body-webpack-plugin
Version:
Webpack plugin that injects a custom string into the body of the html-webpack-plugin output.
26 lines • 635 B
TypeScript
/** @module inject-body-webpack-plugin
*/
declare module "inject-body-webpack-plugin" {
/**
* @typedef {Object} Options
* @prop {number} [port = 3000]
* @prop {string} content
* @prop {string} position
*/
export type Options = {
port?: number;
content: string;
position: string;
};
/**
* @constructor
* @param {Options} [options] Plugin options
*/
export class InjectBrowserSyncPlugin {
constructor(options?: Options);
/**
* @param {import("webpack").Compiler} compiler
*/
apply(compiler: any): void;
}
}