Friendly-errors-webpack-plugin recognizes certain classes of webpack
errors and cleans, aggregates and prioritizes them to provide a better
Developer Experience.
It is easy to add types of errors so if you would like to see more
errors get handled, please open a PR!
If you use webpack-hot-middleware, that is done by setting the log option to a no-op. You can do something sort of like this, depending upon your setup:
new FriendlyErrorsPlugin({ compilationSuccessInfo: { messages: ['You application is running here http://localhost:3000'], notes: ['Some additionnal notes to be displayed unpon successful compilation'] }, onErrors: function (severity, errors) { // You can listen to errors transformed and prioritized by the plugin // severity can be 'error' or 'warning' }, // should the console be cleared between each compilation? // default is true clearConsole: true, // add formatters and transformers (see below) additionalFormatters: [], additionalTransformers: []})
Adding desktop notifications
The plugin has no native support for desktop notifications but it is easy
to add them thanks to node-notifier for instance.