使用 gulp 和 Laravel Elixir - 禁用托盘图标消息?

Using gulp with Laravel Elixir - disable tray icon messages?

当我在 Windows 上使用命令行将 gulp 与 Laravel Elixir 任务一起使用时,每次运行时都会在托盘图标中显示消息。我 必须 单击文本气球以使 gulp 完成其任务。我觉得这很烦人。

是什么导致此托盘图标出现在 Windows 上,如何禁用它,或者使其不必单击气球?

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.

您可以在 here

中阅读更多相关信息

因此,如果您想禁用 gulp 通知,只需将其添加到您的 gulp 文件中,然后再要求 laravel-elixir.

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

您可以在此 issue

中阅读更多相关信息