Installation
npm install --save @types/webpack-clean
Summary
This package contains type definitions for webpack-clean (https://github.com/allexcd/webpack-clean#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-clean.
index.d.ts
import { Plugin } from "webpack";
declare namespace WebpackCleanPlugin {
interface Options {
/**
* directory to be resolved to
* @default null;
*/
basePath?: string | null | undefined;
/**
* specify if the .map files should be automatically removed
* @default false
*/
removeMaps?: boolean | undefined;
/**
* specify if the files should be force deleted in case of compile errors.
* If forceDelete is not enabled, the compile errors will be logged to stdout but the deletion of the files will not take place
* @default false
*/
forceDelete?: boolean | undefined;
}
}
/**
* A webpack plugin to clean specified files after build
*/
declare class WebpackCleanPlugin extends Plugin {
/**
* @param files array of files or string for a single file relative to the basePath
* or to the context of your config (if the basePath param is not specified)
*/
constructor(files: string | string[], options?: WebpackCleanPlugin.Options);
}
/**
* A webpack plugin to clean specified files after build
*/
export = WebpackCleanPlugin;
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.