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

SynchronousMinifier class

Minifier implementation that synchronously minifies code on the main thread.

Signature:

export declare class SynchronousMinifier implements IModuleMinifier 

Implements: IModuleMinifier

Constructors

Constructor Modifiers Description
(constructor)(options)   Constructs a new instance of the SynchronousMinifier class

Properties

Property Modifiers Type Description
terserOptions   MinifyOptions  

Methods

Method Modifiers Description
minify(request, callback)   Transform that synchronously invokes Terser