@xmipra/plugins
Version:
Xmipra developing plugins.
17 lines (16 loc) • 495 B
TypeScript
import { type FSWatcher } from 'chokidar';
import type { Compiler } from 'webpack';
export interface WatchFileOptions {
monitor: boolean;
path: string;
}
export declare abstract class WatchFile {
#private;
options: WatchFileOptions;
constructor(options: WatchFileOptions);
abstract name: string;
abstract update(event: string, path: string, compiler?: Compiler): void;
abstract close(): void;
watcher: FSWatcher | null;
apply(compiler: Compiler): void;
}