On this page

new CssModulesPlugin(): CssModulesPlugin
apply(compiler): void
Attributes
compiler:<Compiler>
Returns:<void>

Applies the plugin by registering its hooks on the compiler.


getModulesInOrder(chunk, modules, compilation): Module
Attributes
chunk:<Chunk>
compilation:<Compilation>
Returns:<Module>
[]

Gets modules in order.


getOrderedChunkCssModules(chunk, chunkGraph, compilation): CssModule
Attributes
chunk:<Chunk>
chunkGraph:<ChunkGraph>
compilation:<Compilation>
Returns:<CssModule>
[]

Gets ordered chunk css modules.


renderChunk(renderContextCssModulesPlugin, hooks): Source
Attributes

Renders generated source.


Attributes
chunk:<Chunk>
chunkGraph:<ChunkGraph>
Returns:<boolean>

Returns true, when the chunk has css.


Attributes

Gets chunk filename template.


Attributes

Returns the attached hooks.


Attributes

Renders css module source.

Attributes
chunk:<Chunk>
the chunk
chunkGraph:<ChunkGraph>
the chunk graph
codeGenerationResults:<CodeGenerationResults>
results of code generation
compilation hash
moduleFactoryCache:<WeakMap>
< <Source> , <ModuleFactoryCacheEntry> > moduleFactoryCache
moduleSourceContent:<Source>
content
runtimeTemplate:<RuntimeTemplate>
the runtime template
undoPath:<string>
undo path to css file


Attributes
The compilation hash
inheritance:
<Tuple> < <CssLayer> , <Supports> , <Media> >[] - The inheritance chain
The cached source
undoPath:<string>
The undo path to the CSS file

Attributes
chunk:<Chunk>
the chunk
chunkGraph:<ChunkGraph>
the chunk graph
codeGenerationResults:<CodeGenerationResults>
results of code generation
compilation hash
modules:<CssModule>
[] modules
runtimeTemplate:<RuntimeTemplate>
the runtime template
undoPath:<string>
undo path to css file
uniqueName:<string>
the unique name