Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable gulp notifications?

I use gulp and laravel elixir for building a website. Everytime I do gulp or gulp --production in my editor (geany), 3 desktop notifications pop up. (gnome 3.18.2). Also when I do gulp watch the notifications appear.

Can I disable these messages or let them show up only in the terminal?

like image 966
haheute Avatar asked Nov 20 '15 12:11

haheute


1 Answers

add process.env.DISABLE_NOTIFIER = true; in first line of your gulpfile.js. and this line :

if you want disable only in local :

if (process.argv[2] == '--local') {
    process.env.DISABLE_NOTIFIER = true;
}
like image 67
Hamid Naghipour Avatar answered Oct 21 '22 23:10

Hamid Naghipour