RoadmapShopEvents
Skip to main content

Home > @rushstack/webpack5-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: Compilation, asset: IAssetInfo): string;

Parameters

ParameterTypeDescription
compilationCompilationThe webpack compilation
assetIAssetInfoThe asset to process

Returns:

string