new HtmlModulesPlugin(): HtmlModulesPlugin
Returns:
HtmlModulesPluginHtmlModulesPlugin.getCompilationHooks(compilation): { htmlEmitted: AsyncSeriesHook<[HtmlEmittedContext]>; injectTags: AsyncSeriesWaterfallHook<[HtmlTagDescriptor[], HtmlInjectTagsContext], HtmlTagDescriptor[]>; transformHtml: AsyncSeriesWaterfallHook<[string, HtmlTransformHtmlContext], string>; transformTags: AsyncSeriesHook<[HtmlMutableTag[], HtmlTransformTagsContext]> }
Attributes
compilation:
CompilationReturns:
{ htmlEmitted: AsyncSeriesHook<[HtmlEmittedContext]>; injectTags: AsyncSeriesWaterfallHook<[HtmlTagDescriptor[], HtmlInjectTagsContext], HtmlTagDescriptor[]>; transformHtml: AsyncSeriesWaterfallHook<[string, HtmlTransformHtmlContext], string>; transformTags: AsyncSeriesHook<[HtmlMutableTag[], HtmlTransformTagsContext]> }Per-compilation hooks for the experimental HTML support.
htmlModulesPlugin.apply(compiler): void
Attributes
compiler:
CompilerApplies the plugin by registering its hooks on the compiler.
HtmlModulesPlugin.computeContentHash(content, outputOptions): string
Attributes
output.hashFunction/hashSalt/hashDigest/hashDigestLength
digest of content, with nonNumericOnlyHash applied — webpack's
standard [contenthash] recipe.
HtmlModulesPlugin.getChunkFilenameTemplate(chunk, outputOptions): ChunkFilenameTemplate
Attributes
Filename template for an extracted HTML page: output.htmlFilename for
initial chunks, output.htmlChunkFilename otherwise — the HTML counterpart
of CssModulesPlugin.getChunkFilenameTemplate.