Show system notifications for errors #131
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uses webpack-notifier under the hood. No setup necessary.
Supports Notification Center on OS X, Toaster on Windows 8 and later.
Falls back to Growl if present.
(https://github.com/mikaelbr/node-notifier/blob/master/DECISION_FLOW.md)
Ref #89.
Notifications look like this:
for this error:
Possible to supply a custom image to
webpack-notifier
, could be React logo. Considerations:eject
will have to copy the logo as well. Might be okay though.Custom title is supported by
webpack-notifier
. "React" might be a bit too broad, "React Scripts" or "Create React App" or "React CLI" might be better.Custom error formatter is not supported, plus terminal coloring artifacts are present (
[4m
). Not currently possible to supply a custom formatter towebpack-notifier
. Ideally the message should have beenFull path & parts of stack trace seem irrelevant for the notification. Error message is much more informative.