Home > @rushstack/module-minifier-plugin > IModuleMinifier

IModuleMinifier interface

Object that can be invoked to minify code.

Signature:

export interface IModuleMinifier 

Properties

Property Type Description
minify IModuleMinifierFunction  

Methods

Method Description
ref() Prevents the minifier from shutting down until the returned callback is invoked. The callback may be used to surface errors encountered by the minifier that may not be relevant to a specific file. It should be called to allow the minifier to cleanup