Home > @rushstack/module-minifier > WorkerPoolMinifier
WorkerPoolMinifier class
Minifier implementation that uses a thread pool for minification.
Signature:
export declare class WorkerPoolMinifier implements IModuleMinifier 
Implements: IModuleMinifier
Constructors
| Constructor | Modifiers | Description | 
|---|---|---|
| (constructor)(options) | Constructs a new instance of the WorkerPoolMinifierclass | 
Properties
| Property | Modifiers | Type | Description | 
|---|---|---|---|
| maxThreads | number | 
Methods
| Method | Modifiers | Description | 
|---|---|---|
| connect() | ||
| minify(request, callback) | Transform code by farming it out to a worker pool. |