3.5.9 • Published 4 years ago

html-minifier-es6 v3.5.9

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Html-Minifier for ES6 (incl. TS definitions)

This is a fork that adds a quick & dumb uglifying support for ES6

Actual repo

https://github.com/kangax/html-minifier

How to use

Install using the following command

npm install html-minifier-es6

Enable it using "es6" in minifyJS options like the following example

minify(html, {
  removeComments: true,
  minifyJS: "es6", // <------
  collapseWhitespace: true
});