Gathering detailed insights and metrics for webpack-notifier
Gathering detailed insights and metrics for webpack-notifier
Gathering detailed insights and metrics for webpack-notifier
Gathering detailed insights and metrics for webpack-notifier
simple-update-notifier
Simple update notifier to check for npm updates for cli applications
node-notifier
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
webpack-notifier-2
webpack + node-notifier = build status system notifications
webpack-build-notifier
A Webpack plugin that generates OS notifications for build steps using node-notifier.
webpack + node-notifier = build status system notifications
npm install webpack-notifier
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
306 Stars
222 Commits
41 Forks
7 Watching
3 Branches
20 Contributors
Updated on 16 Jul 2024
Minified
Minified + Gzipped
TypeScript (53.34%)
JavaScript (46.66%)
Cumulative downloads
Total Downloads
Last day
-11.2%
99,431
Compared to previous day
Last week
-7.9%
577,389
Compared to previous week
Last month
33.4%
2,790,691
Compared to previous month
Last year
-11.4%
25,300,006
Compared to previous year
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-notifier
package 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:
1var WebpackNotifierPlugin = require('webpack-notifier'); 2 3var config = module.exports = { 4 // ... 5 6 plugins: [ 7 new WebpackNotifierPlugin(), 8 ] 9}
node-notifier
optionsYou can use any node-notifier options (depending on your OS) Except for options generated by the plugin itself:
title
- it can be not only a string, but also a functionmessage
- generated based on the value of other optionscontentImage
- it can be an object with images for different statusesicon
- matches with contentImage
Title shown in the notification.
1new WebpackNotifierPlugin({title: 'Webpack'});
1new WebpackNotifierPlugin({title: function (params) { 2 return `Build status is ${params.status} with message ${params.message}`; 3}});
Show status emoji icon before the message.
1new WebpackNotifierPlugin({emoji: true});
Image shown in the notification. Can be a path string or object with paths.
1var path = require('path');
2
3new WebpackNotifierPlugin({contentImage: path.join(__dirname, 'logo.png')});
1var path = require('path'); 2 3const statusesPaths = { 4 success: path.join(__dirname, 'success.png'), 5 warning: path.join(__dirname, 'warning.png'), 6 error: path.join(__dirname, 'error.png') 7} 8 9new WebpackNotifierPlugin({contentImage: statusesPaths});
If set to true
, warnings will not cause a notification.
1new WebpackNotifierPlugin({excludeWarnings: true});
Trigger a notification every time. Call it "noisy-mode".
1new WebpackNotifierPlugin({alwaysNotify: true});
Trigger a notification only on error.
1new 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.
1new WebpackNotifierPlugin({skipFirstNotification: true});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 2/15 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
36 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More