UNPKG

ng-packery

Version:
27 lines (19 loc) 554 B
'use strict'; import notify from 'gulp-notify'; export default function(error) { if( !global.isProd ) { var args = Array.prototype.slice.call(arguments); // Send error to notification center with gulp-notify notify.onError({ title: 'Compile Error', message: '<%= error.message %>' }).apply(this, args); // Keep gulp from hanging on this task this.emit('end'); } else { // Log the error and stop the process // to prevent broken code from building console.log(error); process.exit(1); } };