code: function getHtmlWebpackPluginHooks (compilation) {
    let hooks = htmlWebpackPluginHooksMap.get(compilation);
    // Setup the hooks only once
    if (hooks === undefined) {
      hooks = createHtmlWebpackPluginHooks();
      htmlWebpackPluginHooksMap.set(compilation, hooks);
    }
    return hooks;
  }
docs: Returns all public hooks of the html webpack plugin for the given compilation
  
  @param {WebpackCompilation} compilation
  @returns {HtmlWebpackPluginHooks}