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

PortableMinifierModuleIdsPlugin class

Plugin responsible for converting the Webpack module ids (of whatever variety) to stable ids before code is handed to the minifier, then back again. Uses the node module identity of the target module. Will emit an error if it encounters multiple versions of the same package in the same compilation.

Signature:

export declare class PortableMinifierModuleIdsPlugin implements Plugin 

Implements: Plugin

Constructors

Constructor Modifiers Description
(constructor)(minifierHooks)   Constructs a new instance of the PortableMinifierModuleIdsPlugin class

Methods

Method Modifiers Description
apply(compiler)