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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With