Skip to content

Move to html-minifier-terser to support ES6 🔧 #104

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rodrigograca31
Copy link

As debated in this thread html-minifier is using uglify-js which doesnt support ES6, so if you have any ES6 in your HTML it doesnt compress it.

This new fork created by @DanielRuf changes uglify-js to the latest terser version.

This change is really need nowadays since if you include even 1 line of ES6 the whole JS does not compress.

P.S. I can send another PR bumping this package version if you want. (Nothing should break but since this is a big change I would bump to 6.0.0)

@rodrigograca31
Copy link
Author

Seems tests failed because terser only supports node 6 and up

"engines": {
    "node": ">=6.0.0"
  },

I will add that requirement and change travis build to test only on 6 and above

@rodrigograca31
Copy link
Author

That requirement already existed, but Travis was building for non supported node versions.... 🤦

@jonschlinkert
Copy link
Owner

sorry for the delay, and thanks for the PR. We'll review and merge ASAP!

@rodrigograca31
Copy link
Author

rodrigograca31 commented Nov 26, 2019 via email

@rarous
Copy link

rarous commented Jan 28, 2020

@jonschlinkert Hi, is there any hope this will be merged?

@rodrigograca31
Copy link
Author

Hey!

Seems the webpack team just released version 4 using html-minifier-terser
https://github.com/jantimon/html-webpack-plugin/releases/tag/v4.0.0

It would be good if we could merge this PR and also use html-minifier-terser

Thanks! ❤️

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants