# @types/unused-webpack-plugin

> TypeScript definitions for unused-webpack-plugin

Latest version **2.4.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/unused-webpack-plugin
pnpm add @types/unused-webpack-plugin
yarn add @types/unused-webpack-plugin
bun add @types/unused-webpack-plugin
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.4.5 |
| Published | 2023-11-07 |
| First published | 2021-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51478 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/unused-webpack-plugin
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unused-webpack-plugin
- npm.io page: https://npm.io/package/@types/unused-webpack-plugin

## Dependencies (1)

- [@types/webpack](https://npm.io/package/@types/webpack.md) ^4

## Recent versions

- 2.4.5 (latest) — 2023-11-07
- 2.4.3 (ts4.3) — 2023-08-30
- 2.4.2 (ts3.7) — 2021-07-02
- 2.4.0 (ts3.4) — 2021-03-01
- 2.4.4 — 2023-10-18
- 2.4.1 — 2021-03-25

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/unused-webpack-plugin/index.d.ts)
````ts
import { Compiler, WebpackPluginInstance } 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: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/webpack](https://npmjs.com/package/@types/webpack)

# Credits
These definitions were written by [Remco Haszing](https://github.com/remcohaszing).

---
_Source: https://npm.io/package/@types/unused-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
