@types/uglifyjs-webpack-plugin

  • Version 1.1.5
  • Published
  • 6.1 kB
  • 1 dependency
  • MIT license

Install

npm i @types/uglifyjs-webpack-plugin
yarn add @types/uglifyjs-webpack-plugin
pnpm add @types/uglifyjs-webpack-plugin

Overview

TypeScript definitions for uglifyjs-webpack-plugin

Index

Classes

class UglifyJsPlugin

class UglifyJsPlugin extends Plugin {}

    constructor

    constructor(options?: UglifyJsPlugin.UglifyJsPluginOptions);

      Interfaces

      interface ExtractCommentsOptions

      interface ExtractCommentsOptions {}

        property banner

        banner?: boolean | string | ((fileName: string) => string) | undefined;

          property condition

          condition?: RegExp | ((node: object, comment: string) => boolean) | undefined;

            property filename

            filename?: string | ((originalFileName: string) => string) | undefined;

              interface UglifyJsOptions

              interface UglifyJsOptions {}

                property compress

                compress?: boolean | object | undefined;

                  property ecma

                  ecma?: number | undefined;

                    property ie8

                    ie8?: boolean | undefined;

                      property keep_classnames

                      keep_classnames?: boolean | undefined;

                        property keep_fnames

                        keep_fnames?: boolean | undefined;

                          property mangle

                          mangle?: boolean | object | undefined;

                            property nameCache

                            nameCache?: object | undefined;

                              property output

                              output?: object | undefined;

                                property parse

                                parse?: object | undefined;

                                  property safari10

                                  safari10?: boolean | undefined;

                                    property toplevel

                                    toplevel?: boolean | undefined;

                                      property warnings

                                      warnings?: boolean | undefined;

                                        interface UglifyJsPluginOptions

                                        interface UglifyJsPluginOptions {}

                                          property cache

                                          cache?: boolean | string | undefined;

                                            property exclude

                                            exclude?: RegExp | RegExp[] | undefined;

                                              property extractComments

                                              extractComments?:
                                              | boolean
                                              | RegExp
                                              | ((node: object, comment: string) => boolean)
                                              | ExtractCommentsOptions
                                              | undefined;

                                                property include

                                                include?: RegExp | RegExp[] | undefined;

                                                  property parallel

                                                  parallel?: boolean | number | undefined;

                                                    property sourceMap

                                                    sourceMap?: boolean | undefined;

                                                      property test

                                                      test?: RegExp | RegExp[] | undefined;

                                                        property uglifyOptions

                                                        uglifyOptions?: UglifyJsOptions | undefined;

                                                          property warningsFilter

                                                          warningsFilter?: ((source: string) => boolean) | undefined;

                                                            Package Files (1)

                                                            Dependencies (1)

                                                            Dev Dependencies (0)

                                                            No dev dependencies.

                                                            Peer Dependencies (0)

                                                            No peer dependencies.

                                                            Badge

                                                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/uglifyjs-webpack-plugin.

                                                            • Markdown
                                                              [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/uglifyjs-webpack-plugin)
                                                            • HTML
                                                              <a href="https://www.jsdocs.io/package/@types/uglifyjs-webpack-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>