class webpack.CssGenerator extends GeneratorRepresents the generator runtime component.
new CssGenerator(): CssGeneratorReturns:
<CssGenerator>Attributes
options:
<CssModuleGeneratorOptions>generate(module, generateContext): Source | nullAttributes
Generates generated code for this runtime module.
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.
getSize(module, type?): numberAttributes
Returns the estimated size for the requested source type.
getTypes(module): ReadonlySet<string>Attributes
module:
<NormalModule>Returns:
{ReadonlySet
}
Returns the source types available for this module.
sourceDependency(module, dependency, initFragments, source, generateContext): voidAttributes
module:
<NormalModule>dependency:
<Dependency>initFragments:
{InitFragment
[]}
source:
<ReplaceSource>generateContext:
{GenerateContext & { cssData: CssData }}
Returns:
<void>Processes the provided module.
sourceModule(module, initFragments, source, generateContext): voidAttributes
module:
<NormalModule>initFragments:
{InitFragment
[]}
source:
<ReplaceSource>generateContext:
{GenerateContext & { cssData: CssData }}
Returns:
<void>Processes the provided module.
updateHash(hash, updateHashContextGenerator): voidAttributes
Updates the hash with the data contributed by this instance.
map{{ [index: string]: Generator | undefined }}- Returns:
<ByTypeGenerator>
Returns generator by type.