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

IModuleMinifierPluginOptions interface

Options to the ModuleMinifierPlugin constructor

Signature:

export interface IModuleMinifierPluginOptions 

Properties

Property Type Description
minifier IModuleMinifier Minifier implementation to use. Required.
sourceMap? boolean (Optional) Whether to enable source map processing. If not provided, will attempt to guess based on mode and devtool in the webpack config. Set to false for faster builds at the expense of debuggability.
usePortableModules? boolean (Optional) Instructs the plugin to alter the code of modules to maximize portability across compilations.