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

ModuleMinifierPlugin class

Webpack plugin that minifies code on a per-module basis rather than per-asset. The actual minification is handled by the input minifier object.

Signature:

export declare class ModuleMinifierPlugin implements webpack.Plugin 

Implements: webpack.Plugin

Constructors

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

Properties

Property Modifiers Type Description
hooks   IModuleMinifierPluginHooks  
minifier   IModuleMinifier  

Methods

Method Modifiers Description
apply(compiler)