2.4.5 • Published 6 months ago

@types/unused-webpack-plugin v2.4.5

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

Installation

npm install --save @types/unused-webpack-plugin

Summary

This package contains type definitions for unused-webpack-plugin (https://github.com/MatthieuLemoine/unused-webpack-plugin#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unused-webpack-plugin.

index.d.ts

// Type definitions for unused-webpack-plugin 2.4
// Project: https://github.com/MatthieuLemoine/unused-webpack-plugin#readme
// Definitions by: Remco Haszing <https://github.com/remcohaszing>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

import { WebpackPluginInstance, Compiler } from 'webpack';

export = UnusedWebpackPlugin;

declare namespace UnusedWebpackPlugin {
    interface UnusedWebpackPluginOptions {
        /**
         * Array of directories where to look for unused source files.
         *
         * @default []
         */
        directories?: string[] | undefined;

        /**
         * Array of exclude patterns when looking for unused source files.
         *
         * @default []
         */
        exclude?: string[] | undefined;

        /**
         * Root directory that will be use to display relative paths instead of absolute ones.
         */
        root?: string | undefined;

        /**
         * Whether or not the build should fail if unused files are found.
         *
         * @default false
         */
        failOnUnused?: boolean | undefined;

        /**
         * Whether or not to respect .gitignore file.
         *
         * @default true
         */
        useGitIgnore?: boolean | undefined;
    }
}

/**
 * A webpack plugin to find unused modules/source files.
 *
 * @link https://github.com/MatthieuLemoine/unused-webpack-plugin
 */
declare class UnusedWebpackPlugin implements WebpackPluginInstance {
    constructor(options: UnusedWebpackPlugin.UnusedWebpackPluginOptions);
    apply(compiler: Compiler): void;
}

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:04:50 GMT
  • Dependencies: @types/webpack
  • Global values: none

Credits

These definitions were written by Remco Haszing.

2.4.3

8 months ago

2.4.5

6 months ago

2.4.4

7 months ago

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago