
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
webpack-notifier
Advanced tools
This is a webpack plugin that uses the node-notifier package to display build status system notifications to the user.

This is a fork of the webpack-error-notification plugin. It adds support for Windows and there is no need to manually install the
terminal-notifierpackage on OS X anymore.
The plugin will notify you about the first run (success/fail), all failed runs and the first successful run after recovering from a build failure. In other words: it will stay silent if everything is fine with your build.
Use npm to install this package:
npm install --save-dev webpack-notifier
Check the node-notifier
Requirements
whether you need to install any additional tools for your OS.
In the webpack.config.js file:
var WebpackNotifierPlugin = require('webpack-notifier');
var config = module.exports = {
// ...
plugins: [
new WebpackNotifierPlugin(),
]
}
Title shown in the notification.
new WebpackNotifierPlugin({title: 'Webpack'});
new WebpackNotifierPlugin({title: function (params) {
return `Build status is ${params.status} with message ${params.message}`;
}});
Show status emoji icon before the message.
new WebpackNotifierPlugin({emoji: true});
Image shown in the notification. Can be a path string or object with paths.
var path = require('path');
new WebpackNotifierPlugin({contentImage: path.join(__dirname, 'logo.png')});
var path = require('path');
const statusesPaths = {
success: path.join(__dirname, 'success.png'),
warning: path.join(__dirname, 'warning.png'),
error: path.join(__dirname, 'error.png')
}
new WebpackNotifierPlugin({contentImage: statusesPaths});
If set to true, warnings will not cause a notification.
new WebpackNotifierPlugin({excludeWarnings: true});
Trigger a notification every time. Call it "noisy-mode".
new WebpackNotifierPlugin({alwaysNotify: true});
Trigger a notification only on error.
new WebpackNotifierPlugin({onlyOnError: true});
Do not notify on the first build. This allows you to receive notifications on subsequent incremental builds without being notified on the initial build.
new WebpackNotifierPlugin({skipFirstNotification: true});
Node Notifier is a Node.js module for sending cross-platform notifications. It can be used with Webpack through custom plugins or scripts. Unlike webpack-notifier, it is not specifically designed for Webpack but offers more flexibility for various notification use cases.
Webpack Build Notifier is another Webpack plugin that provides build status system notifications. It offers similar functionality to webpack-notifier but includes additional features like custom icons and sound notifications.
Friendly Errors Webpack Plugin is designed to improve the readability of Webpack build errors and warnings. It also provides notifications, but its primary focus is on making the terminal output more user-friendly.
FAQs
webpack + node-notifier = build status system notifications
The npm package webpack-notifier receives a total of 547,586 weekly downloads. As such, webpack-notifier popularity was classified as popular.
We found that webpack-notifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.