Installation
npm install --save @types/webpack-livereload-plugin
Summary
This package contains type definitions for webpack-livereload-plugin (https://github.com/statianzo/webpack-livereload-plugin#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-livereload-plugin.
import { ServerOptions } from "https";
import { Plugin, Stats } from "webpack";
import webpack = require("webpack");
declare class LiveReloadPlugin extends Plugin {
readonly isRunning: boolean;
constructor(options?: LiveReloadPlugin.Options);
apply(compiler: webpack.Compiler): void;
start(watching: any, cb: () => void): void;
done(stats: Stats): void;
failed(): void;
autoloadJs(): string;
scriptTag(source: string): string;
applyCompilation(compilation: webpack.compilation.Compilation): void;
}
declare namespace LiveReloadPlugin {
interface Options extends Pick<ServerOptions, "cert" | "key" | "pfx"> {
protocol?: string | undefined;
port?: number | undefined;
hostname?: string | undefined;
appendScriptTag?: boolean | undefined;
ignore?: RegExp | RegExp[] | null | undefined;
delay?: number | undefined;
useSourceHash?: boolean | undefined;
}
}
export = LiveReloadPlugin;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/webpack
Credits
These definitions were written by Piotr Błażejewicz.