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

    1.1.2 • 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

    // Type definitions for uglifyjs-webpack-plugin 1.1
    // Project: https://github.com/webpack-contrib/uglifyjs-webpack-plugin
    // Definitions by: Rene Vajkay <https://github.com/vajkayrene>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 3.7
    
    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: Fri, 02 Jul 2021 18:04:46 GMT
    • Dependencies: @types/webpack
    • Global values: none

    Credits

    These definitions were written by Rene Vajkay.

    Keywords

    none

    Install

    npm i @types/uglifyjs-webpack-plugin

    DownloadsWeekly Downloads

    28,849

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    6.56 kB

    Total Files

    4

    Last publish

    Collaborators

    • types