2.0.6 • Published 1 year ago
@types/webpack-blocks__uglify v2.0.6
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
// Type definitions for @webpack-blocks/uglify 2.0
// Project: https://github.com/andywer/webpack-blocks/tree/master/packages/uglify
// Definitions by: Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7
import { Block } from 'webpack-blocks';
import { MinifyOptions } from 'uglify-js';
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: Fri, 02 Jul 2021 18:05:25 GMT
- Dependencies: @types/webpack-blocks, @types/uglify-js
- Global values: none
Credits
These definitions were written by Max Boguslavskiy.