Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gulp play sound on error

Anyone know how to have a sound ( like grunt ) when gulp throw a error during compile/watch ?

l need to setup something special for gulp for have this feature ?

like image 454
Lofka Avatar asked Dec 25 '22 15:12

Lofka


1 Answers

UPDATE: It should be noted that gulp-util has been deprecated and should not be used.

There is the ubituious gulp-util plugin. One of the features that it provides is the "gutil.beep();" function.

in your project's root execute:

npm install gulp-util --save-dev

then in your Gulpfile.js:

var gutil = require('gulp-util');
gutil.beep();
like image 61
Michael Cresta Avatar answered Dec 28 '22 06:12

Michael Cresta