code: function html(options) {
    return Object.assign(function (context) {
      var defaultOpts = {
        filename: 'index.html',
        template: 'templates/index.html',
        showErrors: false
      };
  
      // Merge the provided html config into the context
      var html = context.html || defaultOpts;
  
      /* Warning: Thar be mutation ahead! */
      /* eslint-disable fp/no-mutation */
      context.html = (0, _deepmerge2.default)(html, options, { clone: true });
      /* eslint-enable fp/no-mutation */
  
      // Return empty config snippet (configuration will be created by the post hook)
      return {};
    }, { post: postConfig });
  }
docs: Webpack block for html-webpack-plugin
  
  @see https://github.com/ampedandwired/html-webpack-plugin