File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,15 @@ class Api {
382
382
Config . notifications = false ;
383
383
384
384
return this ;
385
- }
385
+ } ;
386
+
387
+ /**
388
+ * Disable success notifications.
389
+ */
390
+ disableSuccessNotifications ( ) {
391
+ Config . notificationsOnSuccess = false ;
392
+ return this ;
393
+ } ;
386
394
387
395
388
396
/**
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module.exports = function () {
54
54
plugins . push (
55
55
new WebpackNotifierPlugin ( {
56
56
title : 'Laravel Mix' ,
57
- alwaysNotify : true ,
57
+ alwaysNotify : Mix . isUsing ( 'notificationsOnSuccess' ) ,
58
58
contentImage : Mix . paths . root ( 'node_modules/laravel-mix/icons/laravel.png' )
59
59
} )
60
60
) ;
Original file line number Diff line number Diff line change @@ -121,13 +121,21 @@ module.exports = function () {
121
121
122
122
123
123
/**
124
- * Determine if notifications should be displayed for each build.
124
+ * Determine if error notifications should be displayed for each build.
125
125
*
126
126
* @type {Boolean }
127
127
*/
128
128
notifications : true ,
129
129
130
130
131
+ /**
132
+ * Determine if we should always show success notifications.
133
+ *
134
+ * @type {Boolean }
135
+ */
136
+ notificationsOnSuccess : true ,
137
+
138
+
131
139
/**
132
140
* Determine if sourcemaps should be created for the build.
133
141
*
You can’t perform that action at this time.
0 commit comments