How to turn off "build sucess" notifications from Laravel Mix?
I am using Laravel 5.4. I want to turn off the notifications from Laravel Mix. How can I do that?
Add that to your webpack.mix.js file
mix.disableNotifications();
It's generally a good idea to leave notifications on tho, if something fails, it let's you know.
Two months ago they added this method that hides the "Build Successful" notifications while still showing the "Error" notifications.
webpack.mix.js
mix.disableSuccessNotifications();
Best of both worlds :)
(I think it was added in Mix v1.2.0)
Thank you for this. It really helped a lot.
FYI, the first success notification will be displayed and then subsequent notifications will not be sent.
@ChrisL
Didn't work for me unfortunately. That'd be cool though for sure.
You probably use the 'watch' script? Has to be stopped and restarted ofcourse.
thanks @jaytee, it solved the problem for me :)
ok if anyone is saying this isn't working you have to close / terminate and re run your npm run watch after adding mix.disableSuccessNotifications();
Please or to participate in this conversation.