text: const HtmlWebpackPlugin = require('html-webpack-plugin');
  
  module.exports = ({ template } = {}) => ({
  	plugins: [
  		new HtmlWebpackPlugin({
  			template,
  			hash: true,
  			minify: {
  				collapseInlineTagWhitespace: true,
  				collapseWhitespace: true,
  				removeRedundantAttributes: true,
  				includeAutoGeneratedTags: false,
  				keepClosingSlash: true,
  				removeStyleLinkTypeAttributes: true,
  				removeAttributeQuotes: true,
  				removeComments: true,
  				removeEmptyAttributes: true,
  				useShortDoctype: true,
  				minifyJS: true,
  				minifyCSS: true,
  				minifyURLs: true
  			}
  		})
  	]
  });
  