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