# @types/webpack-blocks__uglify

> TypeScript definitions for @webpack-blocks/uglify

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

## Install

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

## 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.0.6 |
| Published | 2023-11-07 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [@types/uglify-js](https://npm.io/package/@types/uglify-js.md) *
- [@types/webpack-blocks](https://npm.io/package/@types/webpack-blocks.md) *

## Recent versions

- 2.0.6 (latest) — 2023-11-07
- 2.0.3 (ts3.7) — 2021-07-02
- 2.0.1 (ts3.2) — 2020-09-26
- 2.0.0 (ts3.0) — 2019-10-16
- 2.0.5 — 2023-10-18
- 2.0.4 — 2023-09-25
- 2.0.2 — 2021-03-25

## README

# Installation
> `npm install --save @types/webpack-blocks__uglify`

# Summary
This package contains type definitions for @webpack-blocks/uglify (https://github.com/andywer/webpack-blocks/tree/master/packages/uglify).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-blocks__uglify.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-blocks__uglify/index.d.ts)
````ts
import { MinifyOptions } from "uglify-js";
import { Block } from "webpack-blocks";

declare namespace uglify {
    type TestType = string | RegExp;
    type ExtractCommentsFunction = (node: any, comment: any) => boolean | ExtractCommentsObject;
    type FileNameFunction = (file: string) => string;

    interface ExtractCommentsObject {
        condition?: boolean | string | RegExp | ExtractCommentsFunction | undefined;
        filename?: RegExp | FileNameFunction | undefined;
        banner?: boolean | string | FileNameFunction | undefined;
    }

    interface Options {
        test?: TestType | TestType[] | undefined;
        include?: TestType | TestType[] | undefined;
        exclude?: TestType | TestType[] | undefined;
        chunkFilter?: ((chunk: any) => boolean) | undefined;
        cache?: string | boolean | undefined;
        cacheKeys?: ((defaultCacheKeys: any, file: any) => object) | undefined;
        parallel?: boolean | number | undefined;
        sourceMap?: boolean | undefined;
        minify?:
            | ((
                file: any,
                sourceMap: any,
            ) => { error: any; map: any; code: any; warnings: any; extractedComments: any })
            | undefined;
        uglifyOptions?: MinifyOptions | undefined;
        extractComments?: boolean | string | RegExp | ExtractCommentsFunction | undefined;
        warningsFilter?: ((warning: any, source: any) => boolean) | undefined;
    }
}

declare function uglify(options?: uglify.Options): Block;

export = uglify;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/uglify-js](https://npmjs.com/package/@types/uglify-js), [@types/webpack-blocks](https://npmjs.com/package/@types/webpack-blocks)

# Credits
These definitions were written by [Max Boguslavskiy](https://github.com/maxbogus).

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