lib/hooks.js
function getHtmlWebpackPluginHooks (compilation) {
  let hooks = htmlWebpackPluginHooksMap.get(compilation);
  // Setup the hooks only once
  if (hooks === undefined) {
    hooks = createHtmlWebpackPluginHooks();
    htmlWebpackPluginHooksMap.set(compilation, hooks);
  }
  return hooks;
}
function getHtmlWebpackPluginHooks (compilation) {
  let hooks = htmlWebpackPluginHooksMap.get(compilation);
  // Setup the hooks only once
  if (hooks === undefined) {
    hooks = createHtmlWebpackPluginHooks();
    htmlWebpackPluginHooksMap.set(compilation, hooks);
  }
  return hooks;
}
function getHtmlWebpackPluginHooks ( compilation ) { let hooks = htmlWebpackPluginHooksMap . get ( compilation ) ; // Setup the hooks only once if ( hooks === undefined ) { hooks = createHtmlWebpackPluginHooks ( ) ; htmlWebpackPluginHooksMap . set ( compilation , hooks ) ; } return hooks ; }
Returns all public hooks of the html webpack plugin for the given compilation

@param {WebpackCompilation} compilation
@returns {HtmlWebpackPluginHooks}
Returns all public hooks of the html webpack plugin for the given compilation