On this page

class CssGenerator extends Generator
Source Code: lib/css/CssGenerator.js#L145
new CssGenerator(): CssGenerator
Returns:CssGenerator
Source Code: lib/css/CssGenerator.js#L154
cssGenerator.generate(module, __namedParameters): Source | null
Source Code: lib/Generator.js#L111
Attributes
__namedParameters:GenerateContext
Returns:Source | null

Generates generated code for this runtime module.

cssGenerator.generateError(error, module, generateContext): Source | null
Source Code: lib/css/CssGenerator.js#L601
Attributes
error:Error
generateContext:GenerateContext
Returns:Source | null

Generates fallback output for the provided error condition.

cssGenerator.getConcatenationBailoutReason(module, context): string | undefined
Source Code: lib/Generator.js#L126
Attributes

Returns the reason this module cannot be concatenated, when one exists.

cssGenerator.getSize(module, type?): number
Source Code: lib/Generator.js#L97
Attributes
type:string
Returns:number

Returns the estimated size for the requested source type.

cssGenerator.getTypes(module): ReadonlySet<string>
Source Code: lib/Generator.js#L76
Attributes
Returns:ReadonlySet<string>

Returns the source types available for this module.

cssGenerator.getTypesDependOnIncomingConnections(): boolean
Source Code: lib/Generator.js#L85
Returns:boolean
cssGenerator.sourceDependency(dependency, source, templateContext): void
Source Code: lib/css/CssGenerator.js#L201
Attributes
dependency:Dependency
templateContext:DependencyTemplateContext & { cssData: CssData; type: string }

Processes the provided module.

cssGenerator.sourceModule(module, initFragments, source, generateContext): void
Source Code: lib/css/CssGenerator.js#L223
Attributes
initFragments:InitFragment<GenerateContext>[]
generateContext:GenerateContext & { cssData: CssData }

Processes the provided module.

cssGenerator.updateHash(hash, __namedParameters): void
Source Code: lib/Generator.js#L135
Attributes
hash:Hash
__namedParameters:UpdateHashContextGenerator

Updates the hash with the data contributed by this instance.

CssGenerator.byType(map): ByTypeGenerator
Source Code: lib/Generator.js#L65
Attributes
map:{ [index: string]: Generator | undefined }

Returns generator by type.