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>
modules:
{Iterable< Module, any, any >|undefined}
compilation:<Compilation>
Returns:<Module[]>

Gets modules in order.


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

Gets ordered chunk css modules.


renderChunk(__namedParameters, hooks): Source
Attributes
Returns:<Source>

Renders generated source.


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

Returns true, when the chunk has css.


Attributes
chunk:<Chunk>
outputOptions:
{OutputNormalizedWithDefaults}

Gets chunk filename template.


Attributes
compilation:<Compilation>

Returns the attached hooks.


Attributes
Returns:<Source> | <null>

Renders css module source.