webpack-isomorphic-compiler-notifier

v1.0.2
Notify webpack compilation status to your operating system when using webpack-isomorphic-compiler
webpack isomorphic compiler notifier notification build

webpack-isomorphic-compiler-notifier

NPM version Downloads Build Status Coverage Status Dependency status Dev Dependency status Greenkeeper badge

Notify webpack compilation status to your operating system when using webpack-isomorphic-compiler.

Installation

$ npm install webpack-isomorphic-compiler-notifier --save-dev

Usage

import webpackIsomorphicCompiler from 'webpack-isomorphic-compiler';
import webpackIsomorphicCompilerNotifier from 'webpack-isomorphic-compiler-notifier';

const compiler = webpackIsomorphicCompiler(/* client config */, /* server config */);

webpackIsomorphicCompilerNotifier(compiler);

For convenience, the function returns the isomorphic compiler passed as the first argument.
The second argument accepts an options object:

  • title: The title for the notification (defaults to the package.json name property)
  • icon: The icon for the notification (defaults to the webpack logo)
  • sound: Play a sound when notifying on OS that support it (defaults to false)

Tests

$ npm test
$ npm test -- --watch during development

License

MIT License

npm i webpack-isomorphic-compiler-notifier

Metadata

  • MIT
  • Whatever
  • AndrĂ© Cruz
  • released 11/13/2017

Downloads

Maintainers