@types/webpack-deadcode-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

Installation

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

Summary

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

Details

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

index.d.ts

import { compilation, Plugin } from "webpack";

interface Options {
    /** Current working directoy for patterns above. If you don't set explicitly, your webpack context will be used. */
    context?: string | undefined;
    /** Whether to run unsed export detection or not. */
    detectUnusedExport?: boolean | undefined;
    /** Whether to run unused files detection or not. */
    detectUnusedFiles?: boolean | undefined;
    /** The array of patterns to not look at. */
    exclude?: string[] | undefined;
    /**
     * Deadcode does not interrupt the compilation by default.
     * If you want to cancel the compilation, set it `true`, it throws a fatal error and stops the compilation.
     */
    failOnHint?: boolean | undefined;
    outputFile?: string | undefined;
    /**
     * The array of patterns to look for unused files and unused export in used files.
     * Directly passed to [`fast-glob`](https://github.com/mrmlnc/fast-glob).
     */
    patterns?: string[] | undefined;
}

declare class WebpackDeadcodePlugin extends Plugin {
    options: Options;

    constructor(options?: Options);

    handleAfterEmit(options: Required<Options>, compilation: compilation.Compilation, callback: () => void): void;
}

export = WebpackDeadcodePlugin;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/webpack

Credits

These definitions were written by Ciarán Ingle.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.53,325ts5.7
0.1.53,325ts5.6
0.1.53,325latest
0.1.53,325ts4.5
0.1.53,325ts4.6
0.1.53,325ts4.7
0.1.53,325ts4.8
0.1.53,325ts4.9
0.1.53,325ts5.0
0.1.53,325ts5.1
0.1.53,325ts5.2
0.1.53,325ts5.3
0.1.53,325ts5.4
0.1.53,325ts5.5
0.1.53,325ts5.8
0.1.2150ts3.7
0.1.2150ts3.8
0.1.2150ts3.9
0.1.2150ts4.0
0.1.2150ts4.1
0.1.2150ts4.2
0.1.2150ts4.3
0.1.2150ts4.4
0.1.01ts3.0
0.1.01ts3.1
0.1.01ts3.2
0.1.01ts3.3
0.1.01ts3.4
0.1.01ts3.5
0.1.01ts3.6

Version History

VersionDownloads (Last 7 Days)Published
0.1.53,325
0.1.462
0.1.31
0.1.2150
0.1.11
0.1.01

Package Sidebar

Install

npm i @types/webpack-deadcode-plugin

Weekly Downloads

3,540

Version

0.1.5

License

MIT

Unpacked Size

5.29 kB

Total Files

5

Last publish

Collaborators

  • types