gruntjs / grunt-contrib-uglify

Minify files with UglifyJS.
http://gruntjs.com/
MIT License
1.48k stars 347 forks source link

handle minification failure gracefully #519

Open thefourtheye opened 6 years ago

thefourtheye commented 6 years ago

Fixes: https://github.com/gruntjs/grunt-contrib-uglify/issues/409

Whenever the minification of a file fails, the task fails with the error 'min' is not available in 'undefined'.

This patch allows the task to continue to the next file without making any changes to the contents of the file in the destination. Also, this introduces a new configuration option skipErrors, so that the users can specify that in the task level options to override the default behaviour.

jsf-clabot commented 6 years ago

CLA assistant check
All committers have signed the CLA.