AllenYuan

build - setup - 3

Apr 22nd, 2020
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // pipe errors to console
  2. var interceptErrors = function (error) {
  3.   var args = Array.prototype.slice.call(arguments);
  4.   // send error to notification center
  5.   notify
  6.     .onError({
  7.       title: 'Compile Error',
  8.       message: '<%= error.message %>',
  9.     })
  10.     .apply(this, args);
  11.   // end to keep gulp from hanging on the task
  12.   this.emit('end');
  13. };
Advertisement
Add Comment
Please, Sign In to add comment