RoadmapShopEvents
Skip to main content

Home > @rushstack/webpack5-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 WebpackPluginInstance 

Implements: WebpackPluginInstance

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the ModuleMinifierPlugin class

Properties

PropertyModifiersTypeDescription
hooksreadonlyIModuleMinifierPluginHooks
minifierIModuleMinifier

Methods

MethodModifiersDescription
apply(compiler)
getCompilationStatistics(compilation)static