Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/module-minifier > IWorkerPoolMinifierOptions

IWorkerPoolMinifierOptions interface

Options for configuring the WorkerPoolMinifier

Signature:

export interface IWorkerPoolMinifierOptions 

Properties

Property

Modifiers

Type

Description

maxThreads?

number

(Optional) Maximum number of worker threads to use. Will never use more than there are modules to process. Defaults to os.availableParallelism()

terserOptions?

MinifyOptions

(Optional) The options to forward to Terser. output.comments is currently not configurable and will always extract license comments to a separate file.

verbose?

boolean

(Optional) If true, log to the console about the minification results.

workerResourceLimits?

ResourceLimits

(Optional) Optional resource limits for the workers.