Attributes
new AssetGenerator(): AssetGeneratorReturns:
<AssetGenerator>Attributes
generate(module, __namedParameters): Source | nullAttributes
module:
<NormalModule>module for which the code should be generated
__namedParameters:
<GenerateContext>generateDataUri(module): stringAttributes
module:
<NormalModule>Returns:
<string>generateError(error, module, generateContext): Source | nullAttributes
getConcatenationBailoutReason(module, context): string | undefinedAttributes
module:
<NormalModule>module for which the bailout reason should be determined
context:
{ConcatenationBailoutReasonContext} context
Returns:
<string>
|
<undefined>reason why this module can't be concatenated, undefined when it can be concatenated
getMimeType(module): stringAttributes
module:
<NormalModule>Returns:
<string>getSize(module, type?): numberAttributes
module:
<NormalModule>the module
type:
<string>source type
Returns:
<number>estimate size of the module
getTypes(module): ReadonlySet< string >Attributes
module:
<NormalModule>fresh module
Returns:
{ReadonlySet< string >} available types (do not mutate)
updateHash(hash, __namedParameters): voidAttributes
hash:
<Hash>hash that will be modified
__namedParameters:
{UpdateHashContextGenerator}
Returns:
{void}
Attributes
map:
<object>map of types
Returns:
{ByTypeGenerator} generator by type