index.js
function templateParametersGenerator (compilation, assets, assetTags, options) {
  const xhtml = options.xhtml;
  assetTags.headTags.toString = function () {
    return this.map((assetTagObject) => htmlTagObjectToString(assetTagObject, xhtml)).join('');
  };
  assetTags.bodyTags.toString = function () {
    return this.map((assetTagObject) => htmlTagObjectToString(assetTagObject, xhtml)).join('');
  };
  return {
    compilation: compilation,
    webpackConfig: compilation.options,
    htmlWebpackPlugin: {
      tags: assetTags,
      files: assets,
      options: options
    }
  };
}
function templateParametersGenerator (compilation, assets, assetTags, options) {
  const xhtml = options.xhtml;
  assetTags.headTags.toString = function () {
    return this.map((assetTagObject) => htmlTagObjectToString(assetTagObject, xhtml)).join('');
  };
  assetTags.bodyTags.toString = function () {
    return this.map((assetTagObject) => htmlTagObjectToString(assetTagObject, xhtml)).join('');
  };
  return {
    compilation: compilation,
    webpackConfig: compilation.options,
    htmlWebpackPlugin: {
      tags: assetTags,
      files: assets,
      options: options
    }
  };
}
function templateParametersGenerator ( compilation , assets , assetTags , options ) { const xhtml = options . xhtml ; assetTags . headTags . toString = function ( ) { return this . map ( ( assetTagObject ) => htmlTagObjectToString ( assetTagObject , xhtml ) ) . join ( '' ) ; } ; assetTags . bodyTags . toString = function ( ) { return this . map ( ( assetTagObject ) => htmlTagObjectToString ( assetTagObject , xhtml ) ) . join ( '' ) ; } ; return { compilation : compilation , webpackConfig : compilation . options , htmlWebpackPlugin : { tags : assetTags , files : assets , options : options } } ; }
The default for options.templateParameter
Generate the template parameters

Generate the template parameters for the template function
@param {WebpackCompilation} compilation
@param {{
publicPath: string,
js: Array<string>,
css: Array<string>,
manifest?: string,
favicon?: string
}} assets
@param {{
headTags: HtmlTagObject[],
bodyTags: HtmlTagObject[]
}} assetTags
@param {ProcessedHtmlWebpackOptions} options
@returns {TemplateParameter}
The default for options . templateParameter Generate the template parameters