webpack-isomorphic-compiler-notifier
v1.0.1 webpack isomorphic compiler notifier notification build
webpack-isomorphic-compiler-notifier
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.jsonname
property)icon
: The icon for the notification (defaults to the webpack logo)sound
: Play a sound when notifying on OS that support it (defaults tofalse
)
Tests
$ npm test
$ npm test -- --watch
during development