Installation
npm install --save @types/minify
Summary
This package contains type definitions for minify (http://coderaiser.github.io/minify).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minify.
import htmlMinifier = require('html-minifier-terser');
import cleanCSS = require('clean-css');
import terser = require('terser');
declare function minify(name: string, options?: minify.Options): Promise<string>;
declare namespace minify {
interface Options {
html?: htmlMinifier.Options | undefined;
css?: cleanCSS.Options | undefined;
js?: terser.MinifyOptions | undefined;
img?: {
maxSize?: number | undefined;
} | undefined;
}
}
export = minify;
Additional Details
Credits
These definitions were written by Piotr Błażejewicz.