I'm using gruntjs
(which uses uglifyjs
) to build my Angularjs
app. But uglifyjs
still does not support es6, so in corresponding GitHub issue i found this. So now there is uglify-es, which seemingly supports es6. But I'm not sure how to integrate it with grunt. Now i have module "grunt-contrib-uglify"
, which has a dependency uglifyjs
, which is now used. How can i make grunt use uglify-es
instead?
2023 UPD: this answer may be outdated, according to some comments. Didn't have time to check
I've achived this by installing the harmony branch of grunt-contrib-uglify
, which supports es6:
npm install git://github.com/gruntjs/grunt-contrib-uglify.git#harmony --save-dev