1.0.0 • Published 5 years ago

blownotifier v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

webpack-notifier

This is a webpack plugin that uses the node-notifier package to display build status system notifications for blowpack framework to the user.

webpack-notifier screenshot

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.

Installation

Use npm to install this package:

npm install --save-dev blownotifier

Check the node-notifier Requirements whether you need to install any additional tools for your OS.

Usage

In the webpack.config.js file:

var BlowNotifier = require('blownotifier');

var config = module.exports = {
  // ...

  plugins: [
    new BlowNotifier(),
  ]
},

Configuration

Title

Title shown in the notification.

new BlowNotifier({title: 'blowpack'});

Content Image

Image shown in the notification.

var path = require('path');

new BlowNotifier({contentImage: path.join(__dirname, 'logo.png')});

Exclude Warnings

If set to true, warnings will not cause a notification.

new BlowNotifier({excludeWarnings: true});

Always Notify

Trigger a notification every time. Call it "noisy-mode".

new BlowNotifier({alwaysNotify: true});

Skip Notification on the First Build

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 BlowNotifier({skipFirstNotification: true});

author : -Hadi Mousavi -Twitter