Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using gulp with Laravel Elixir - disable tray icon messages?

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 ?

like image 530
Dylan Avatar asked Jan 27 '16 12:01

Dylan


People also ask

How to use Elixir with Gulp in Laravel?

Gulp will be used to run all your elixir tasks. --global parameter indicates that, we are installing Gulp globally. To use the elixir, from the root of your Laravel application run the command. Once you are done with assets compilation, you will see a file gulpfile.js in your project’s root.

What is Laravel elixir?

Laravel Elixir provides a clean, fluent API for defining basic Gulp tasks for your Laravel application. Elixir supports several common CSS and JavaScript pre-processors, and even testing tools.

How do I minify my CSS and JavaScript files in Elixir?

Elixir is built on top of Gulp, so to run your Elixir tasks you only need to run the gulp command in your terminal. Adding the --production flag to the command will instruct Elixir to minify your CSS and JavaScript files:

How do I hashed an asset in Laravel using elixir?

After generating the versioned file, you may use Laravel's global elixir PHP helper function within your views to load the appropriately hashed asset. The elixir function will automatically determine the name of the hashed file: You may pass an array to the version method to version multiple files:


1 Answers

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 read more about it in this issue

like image 74
Fabio Antunes Avatar answered Oct 21 '22 13:10

Fabio Antunes