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 ?
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.
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.
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:
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:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With