I used grunt-uglify in my project and I\'m working with es6. for some es6 features, such as fat arrow function, it\'s throwing an error. I think the uglify don\'t understant
If the resulting code does not need to use ES6 syntax, it is also possible to transpile ES6 to ES5, before uglifying your code. This can for example be done with the Grunt task grunt-es6-transpiler.