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

IAssetInfo interface

Information about a dehydrated webpack ECMAScript asset

Signature:

export interface IAssetInfo 

Properties

Property Type Description
chunk webpack.compilation.Chunk The raw chunk object from Webpack, in case information from it is necessary for reconstruction
extractedComments string[] The extracted comments from the boilerplate. Will usually be empty unless the minifier configuration and a plugin inject a comment that needs extraction in the runtime.
fileName string The name of the asset, used to index into compilation.assets
modules (string | number)[] The ids of the modules that are part of the chunk corresponding to this asset
source Source The (minified) boilerplate code for the asset. Will contain a token to be replaced by the minified modules.