Home > @rushstack/module-minifier > IModuleMinifier
IModuleMinifier interface
Object that can be invoked to minify code.
Signature:
export interface IModuleMinifier
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
minify | IModuleMinifierFunction | Asynchronously minify a module |
Methods
Method | Description |
---|---|
connect() | Prevents the minifier from shutting down until the returned disconnect() 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 |