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 @@ -383,7 +383,15 @@ class Api {
383
383
Config . notifications = false ;
384
384
385
385
return this ;
386
- }
386
+ } ;
387
+
388
+ /**
389
+ * Disable success notifications.
390
+ */
391
+ disableSuccessNotifications ( ) {
392
+ Config . notificationsOnSuccess = false ;
393
+ return this ;
394
+ } ;
387
395
388
396
389
397
/**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ module.exports = function () {
55
55
plugins . push (
56
56
new WebpackNotifierPlugin ( {
57
57
title : 'Laravel Mix' ,
58
- alwaysNotify : true ,
58
+ alwaysNotify : Mix . isUsing ( 'notificationsOnSuccess' ) ,
59
59
contentImage : Mix . paths . root ( 'node_modules/laravel-mix/icons/laravel.png' )
60
60
} )
61
61
) ;
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