lib/hooks.js
function createHtmlWebpackPluginHooks () {
  return {
    beforeAssetTagGeneration: new AsyncSeriesWaterfallHook(['pluginArgs']),
    alterAssetTags: new AsyncSeriesWaterfallHook(['pluginArgs']),
    alterAssetTagGroups: new AsyncSeriesWaterfallHook(['pluginArgs']),
    afterTemplateExecution: new AsyncSeriesWaterfallHook(['pluginArgs']),
    beforeEmit: new AsyncSeriesWaterfallHook(['pluginArgs']),
    afterEmit: new AsyncSeriesWaterfallHook(['pluginArgs'])
  };
}
function createHtmlWebpackPluginHooks () {
  return {
    beforeAssetTagGeneration: new AsyncSeriesWaterfallHook(['pluginArgs']),
    alterAssetTags: new AsyncSeriesWaterfallHook(['pluginArgs']),
    alterAssetTagGroups: new AsyncSeriesWaterfallHook(['pluginArgs']),
    afterTemplateExecution: new AsyncSeriesWaterfallHook(['pluginArgs']),
    beforeEmit: new AsyncSeriesWaterfallHook(['pluginArgs']),
    afterEmit: new AsyncSeriesWaterfallHook(['pluginArgs'])
  };
}
function createHtmlWebpackPluginHooks ( ) { return { beforeAssetTagGeneration : new AsyncSeriesWaterfallHook ( [ 'pluginArgs' ] ) , alterAssetTags : new AsyncSeriesWaterfallHook ( [ 'pluginArgs' ] ) , alterAssetTagGroups : new AsyncSeriesWaterfallHook ( [ 'pluginArgs' ] ) , afterTemplateExecution : new AsyncSeriesWaterfallHook ( [ 'pluginArgs' ] ) , beforeEmit : new AsyncSeriesWaterfallHook ( [ 'pluginArgs' ] ) , afterEmit : new AsyncSeriesWaterfallHook ( [ 'pluginArgs' ] ) } ; }
Add hooks to the webpack compilation object to allow foreign plugins to
extend the HtmlWebpackPlugin

@returns {HtmlWebpackPluginHooks}
Add hooks to the webpack compilation object to allow foreign plugins to extend the HtmlWebpackPlugin