mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
32 lines
925 B
TypeScript
32 lines
925 B
TypeScript
// Type definitions for webpack-cleanup-plugin 0.5
|
|
// Project: https://github.com/gpbl/webpack-cleanup-plugin#readme
|
|
// Definitions by: Luka Maljic <https://github.com/malj>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { Plugin } from 'webpack';
|
|
export = WebpackCleanupPlugin;
|
|
|
|
declare class WebpackCleanupPlugin extends Plugin {
|
|
constructor(options?: WebpackCleanupPlugin.Options);
|
|
}
|
|
|
|
declare namespace WebpackCleanupPlugin {
|
|
interface Options {
|
|
/**
|
|
* Keep some files in the output path. It accepts globbing as in [minimatch](https://github.com/isaacs/minimatch).
|
|
*/
|
|
exclude?: string[];
|
|
|
|
/**
|
|
* Print the list of the files that will be deleted without actually deleting them.
|
|
*/
|
|
preview?: boolean;
|
|
|
|
/**
|
|
* Mute the console output.
|
|
*/
|
|
quiet?: boolean;
|
|
}
|
|
}
|