Minify output HTML
Option: minify
Type: 'auto'|boolean|Object Default: false
For minification generated HTML is used the html-minifier-terser with the following default options:
{
  collapseWhitespace: true,
  keepClosingSlash: true,
  removeComments: true,
  removeRedundantAttributes: false, // prevents styling bug when input "type=text" is removed
  removeScriptTypeAttributes: true,
  removeStyleLinkTypeAttributes: true,
  useShortDoctype: true,
  minifyCSS: true,
  minifyJS: true,
}
Possible values:
false- disable minificationtrue- enable minification with default options'auto'- indevelopmentmode disable minification, inproductionmode enable minification with default options, use minifyOptions to customize options{}- enable minification with custom options, this object are merged withdefault options
see options reference
minifyOptions
Type: Object Default: null
When the minify option is set to 'auto' or true, you can configure minification options using the minifyOptions.