[Question] How to disable notification if the build is successful?
See original GitHub issueI want to disable os notifications on success builds when I hit save. I just want be notified if there are errors or warnings… I tried the code below but didn’t work.
mix.js('resources/assets/js/app.js', 'public/dist/vendor.js')
.sourceMaps().then(function (stats) {
// if (!stats.hasErrors() || !stats.hasWarnings()) {
mix.disableNotifications();
// }
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[Question] How to disable notification if the build is successful?
I want to disable os notifications on success builds when I hit save. I just want be notified if there are errors or...
Read more >How can I disable the build/run notification in Xcode?
Xcode > Preferences > Behaviors. Where it says 'build' click succeeds and uncheck. 'notify using bezel or system notification'.
Read more >How to turn off "build sucess" notifications from Laravel Mix?
It's generally a good idea to leave notifications on tho, if something fails, it let's you know.
Read more >Configuring notifications for a plan and its jobs | Bamboo Data ...
Navigate to the configuration for the desired Plan, as described on Configuring plans. Go to the Notifications tab. Select Remove for each of...
Read more >How can I stop receiving email notifications when a ticket is ...
Answer · Navigate to the Admin Center. · Click Objects and rules. · Under Business rules select Triggers. · Locate the trigger in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome! Thanks @JeffreyWay and @HSPDev. Would it be possible to add this to the docs? It only mentions .disableNotifications() there so I only found out about the
disableSuccessNotifications()
function by looking at the pull request of HSPDev. Others looking for the same feature might not easily find it here.@JohnnyWalkerDesign I’ve made a fix at https://github.com/JeffreyWay/laravel-mix/pull/894 Just waiting for @JeffreyWay ❤️