2.1.1 • Published 6 years ago

webpack-sane-compiler-notifier v2.1.1

Weekly downloads
2,022
License
MIT
Repository
github
Last release
6 years ago

webpack-sane-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-sane-compiler.

Installation

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

Usage

const startNotifying = require('webpack-sane-compiler-notifier');

const { stop, options } = startNotifying(compiler, {/* options */});

// Call compiler.run() or compiler.watch() to start a compilation and you will see OS notifications showing up
// Calling stop() will stop listening to the compiler events
// Furthermore, you have access to the options that were computed by the merge of provided options and the defaults

Available options

NameDescriptionTypeDefault
titleThe title for the notificationstringpackage.json name
iconThe icon for the notificationstringwebpack-logo.png
soundPlay a sound when notifying on OS that support itstringfalse

Tests

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

License

MIT License