gruntjs / grunt-contrib-requirejs

Optimize RequireJS projects using r.js.
http://gruntjs.com/
MIT License
504 stars 105 forks source link

Catch errors thrown by requirejs.optimize using errback #101

Closed tylerbeck closed 8 years ago

tylerbeck commented 9 years ago

The reason for this update is to allow grunt-contrib-requirejs to fail gracefully when there is an r.js error. Currently the node process is aborted; this behavior is undesirable in a development environment, especially when using a watch process.

The updates I've made are as described by the requirejs creator (issue link) and have been implemented via a new option in order to not affect the current behavior.