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

1.1.5 • Public • Published

Installation

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

Summary

This package contains type definitions for uglifyjs-webpack-plugin (https://github.com/webpack-contrib/uglifyjs-webpack-plugin).

Details

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

index.d.ts

import { Plugin } from "webpack";

export = UglifyJsPlugin;

declare class UglifyJsPlugin extends Plugin {
    constructor(options?: UglifyJsPlugin.UglifyJsPluginOptions);
}

declare namespace UglifyJsPlugin {
    interface UglifyJsPluginOptions {
        test?: RegExp | RegExp[] | undefined;
        include?: RegExp | RegExp[] | undefined;
        exclude?: RegExp | RegExp[] | undefined;
        cache?: boolean | string | undefined;
        parallel?: boolean | number | undefined;
        sourceMap?: boolean | undefined;
        uglifyOptions?: UglifyJsOptions | undefined;
        extractComments?:
            | boolean
            | RegExp
            | ((node: object, comment: string) => boolean)
            | ExtractCommentsOptions
            | undefined;
        warningsFilter?: ((source: string) => boolean) | undefined;
    }

    interface UglifyJsOptions {
        ie8?: boolean | undefined;
        ecma?: number | undefined;
        parse?: object | undefined;
        mangle?: boolean | object | undefined;
        output?: object | undefined;
        compress?: boolean | object | undefined;
        warnings?: boolean | undefined;
        toplevel?: boolean | undefined;
        nameCache?: object | undefined;
        keep_classnames?: boolean | undefined;
        keep_fnames?: boolean | undefined;
        safari10?: boolean | undefined;
    }

    interface ExtractCommentsOptions {
        condition?: RegExp | ((node: object, comment: string) => boolean) | undefined;
        filename?: string | ((originalFileName: string) => string) | undefined;
        banner?: boolean | string | ((fileName: string) => string) | undefined;
    }
}

Additional Details

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

Credits

These definitions were written by Rene Vajkay.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/uglifyjs-webpack-plugin

Weekly Downloads

16,613

Version

1.1.5

License

MIT

Unpacked Size

6.1 kB

Total Files

5

Last publish

Collaborators

  • types