Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

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! ❤️

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

Successfully merging this pull request may close these issues.

None yet

3 participants