gulpfile.js
function minifyTemplate(file) {
  try {
    let minifiedFile = htmlMinifier.minify(file, {
      collapseWhitespace: true,
      caseSensitive: true,
      removeComments: true
    });
    return minifiedFile;
  } catch (err) {
    console.log(err);
  }
}
function minifyTemplate(file) {
  try {
    let minifiedFile = htmlMinifier.minify(file, {
      collapseWhitespace: true,
      caseSensitive: true,
      removeComments: true
    });
    return minifiedFile;
  } catch (err) {
    console.log(err);
  }
}
function minifyTemplate ( file ) { try { let minifiedFile = htmlMinifier . minify ( file , { collapseWhitespace : true , caseSensitive : true , removeComments : true } ) ; return minifiedFile ; } catch ( err ) { console . log ( err ) ; } }
Minify HTML templates
Minify HTML templates