Ad

Using Gulp With Laravel Elixir - Disable Tray Icon Messages?

- 1 answer

When I use gulp with Laravel Elixir tasks in it using the command line on Windows, every time it runs messages are displayed in a tray icon. I have to click on the text-balloons to make gulp finish its tasks. I find this very annoying.

What is causing this tray icon to appear on Windows, and how to disable it, or make it not necessary to click on the balloon ?

Ad

Answer

Disable gulp-notify

If you are running on a system that handles notifications poorly or you simply do not wish to use gulp-notify but your project does? You can disable gulp-notify by using enviroment variable DISABLE_NOTIFIER.

export DISABLE_NOTIFIER=true; This will disable all methods; notify(), notify.onError and notify.withReporter.

You can read more about it in here

So if you want to disable your gulp notifications just add this to your gulp file, before requiring laravel-elixir.

process.env.DISABLE_NOTIFIER = true;
var elixir = require('laravel-elixir');

You can

process.env.DISABLE_NOTIFIER = true;
var elixir = require('laravel-elixir');

You can read more about it in this issue

Ad
source: stackoverflow.com
Ad