
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
webpack-notifier-2
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-notifier which 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'});
var path = require('path');
new WebpackNotifierPlugin({title: function (params) {
return `Build status is ${params.status} with message ${params.message}`;
}});
var path = require('path');
new WebpackNotifierPlugin({emoji: true});
Image shown in the notification. Can be a path string or object with paths.
String path:
var path = require('path');
new WebpackNotifierPlugin({contentImage: path.join(__dirname, 'logo.png')});
Object string path:
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});
FAQs
webpack + node-notifier = build status system notifications
The npm package webpack-notifier-2 receives a total of 787 weekly downloads. As such, webpack-notifier-2 popularity was classified as not popular.
We found that webpack-notifier-2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.