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

IModuleMinifierPluginHooks interface

Hooks provided by the ModuleMinifierPlugin


export interface IModuleMinifierPluginHooks 


Property Type Description
finalModuleId SyncWaterfallHook<string | number | undefined> Hook invoked on a module id to get the final rendered id.
postProcessCodeFragment SyncWaterfallHook<ReplaceSource, string> Hook invoked on code after it has been returned from the minifier.
rehydrateAssets AsyncSeriesWaterfallHook<IDehydratedAssets, webpack.compilation.Compilation> Hook invoked at the start of optimizeChunkAssets to rehydrate the minified boilerplate and runtime into chunk assets.