JakariaBlaine's avatar

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?

0 likes
9 replies
Jaytee's avatar
Jaytee
Best Answer
Level 39

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.

9 likes
chrisland's avatar

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)

15 likes
khr2003's avatar

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.

Stamden's avatar

@ChrisL

Didn't work for me unfortunately. That'd be cool though for sure.

1 like
jfaber's avatar

You probably use the 'watch' script? Has to be stopped and restarted ofcourse.

1 like
kuns25's avatar

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.