15

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?

haheute
  • 2,129
  • 3
  • 32
  • 49
  • 1
    I think [this](https://laracasts.com/discuss/channels/elixir/elixir-disable-success-notifications) can help you. You only need to add `process.env.DISABLE_NOTIFIER = true;` in first line of your `gulpfile.js`. I checked that solution and it worked. – Alex Nov 21 '15 at 06:28

2 Answers2

26

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;
}
Hamid Naghipour
  • 3,465
  • 2
  • 26
  • 55
0

Hamid's answer wasn't working for me, however I'm on Windows 10 and found that I could disable the notifications from gulp by:

  1. Opening Windows Settings > System > Notifications & actions
  2. Then turning off SnoreToast notifications (screenshot of Notifications & actions screen with SnoreToast turned off)
thm51mb
  • 105
  • 1
  • 4