Skip to content
This repository has been archived by the owner on Feb 4, 2018. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

moxystudio/webpack-isomorphic-compiler-notifier

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published