How to pass terser options to html-minifier-terser

Viewed 228
1 Answers

This answer is coming late, but it might help someone with a similar question.

You can pass your Terser options through the minifyJS property. For example:

htmlmin.minify(html, {
  minifyJS: {
    compress: {
      arrows: false,
    },
  },
})
Related