1.2.5 • Published 6 months ago

@types/webpack-clean v1.2.5

Weekly downloads
39
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for webpack-clean 1.2
// Project: https://github.com/allexcd/webpack-clean#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

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: Fri, 02 Jul 2021 18:05:26 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Piotr Błażejewicz.

1.2.5

6 months ago

1.2.4

7 months ago

1.2.3

8 months ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago