class webpack.AssetGenerator extends Generatornew AssetGenerator(): AssetGeneratorReturns:
<AssetGenerator>Attributes
dataUrlOptions:
<AssetGeneratorDataUrlOptions>
|
<object>emit:
<boolean>filename:
<string>
|
<TemplatePathFn><
<PathDataModule>
>outputPath:
<string>
|
<TemplatePathFn><
<PathDataModule>
>publicPath:
<string>
|
<TemplatePathFn><
<PathData>
>generate(module, __namedParameters): Source | nullAttributes
Generates generated code for this runtime module.
generateDataUri(module): stringAttributes
module:
<NormalModule>Returns:
<string>Generates data uri.
generateError(error, module, generateContext): Source | nullAttributes
Generates fallback output for the provided error condition.
getConcatenationBailoutReason(module, context): string | undefinedAttributes
Returns the reason this module cannot be concatenated, when one exists.
getMimeType(module): stringAttributes
module:
<NormalModule>Returns:
<string>Returns mime type.
getSize(module, type?): numberAttributes
Returns the estimated size for the requested source type.
getTypes(module): ReadonlySetAttributes
module:
<NormalModule>Returns:
<ReadonlySet>
<
<string>
>Returns the source types available for this module.
updateHash(hash, __namedParameters): voidAttributes
Updates the hash with the data contributed by this instance.
Attributes
map:
<object>Returns:
{ByTypeGenerator}
Returns generator by type.