question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] How to disable notification if the build is successful?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
dschreijcommented, Nov 23, 2017

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.

8reactions
HSPDevcommented, Jun 22, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found