new CssModulesPlugin(): CssModulesPluginReturns:
<CssModulesPlugin>apply(compiler): voidAttributes
compiler:
<Compiler>Returns:
{void}
Applies the plugin by registering its hooks on the compiler.
getModulesInOrder(chunk, modules, compilation): Module[]Attributes
Returns:
<Module[]>Gets modules in order.
getOrderedChunkCssModules(chunk, chunkGraph, compilation): CssModule[]Attributes
Returns:
<CssModule[]>Gets ordered chunk css modules.
renderChunk(__namedParameters, hooks): SourceAttributes
__namedParameters:
<RenderContextCssModulesPlugin>Returns:
<Source>Renders generated source.
Attributes
chunk:
<Chunk>chunkGraph:
<ChunkGraph>Returns:
<boolean>Returns true, when the chunk has css.
Attributes
chunk:
<Chunk>outputOptions:
{OutputNormalizedWithDefaults}
Returns:
<ChunkFilenameTemplate>Gets chunk filename template.
Attributes
compilation:
<Compilation>Returns the attached hooks.
Attributes
module:
<CssModule>renderContext:
<ChunkRenderContextCssModulesPlugin>Renders css module source.