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

generateLicenseFileForAsset() function

Generates a companion asset containing all extracted comments. If it is non-empty, returns a banner comment directing users to said companion asset.

Signature:

export declare function generateLicenseFileForAsset(compilation: webpack.compilation.Compilation, asset: IAssetInfo, minifiedModules: IModuleMap): string;

Parameters

Parameter Type Description
compilation webpack.compilation.Compilation The webpack compilation
asset IAssetInfo The asset to process
minifiedModules IModuleMap The minified modules to pull comments from

Returns:

string