'How to pass terser options to html-minifier-terser
How to pass terser options to html-minifier-terser (https://www.npmjs.com/package/html-minifier-terser)?
The docs do not show any way to send it, only general options for html minify processing.
Solution 1:[1]
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,
},
},
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mubaraq Wahab |