webpack-sound-plugin
v1.0.1
Published
Plays audio notifications when warnings / errors occured while building with webpack.
Downloads
6
Readme
webpack-sound-plugin
Plays audio notifications when warnings / errors occured while building with webpack.
Installation
$ npm i webpack-sound-plugin --save-dev
const SoundAlert = require('webpack-sound-plugin');
plugins: [
...
new SoundAlert({
warning: 'warning.mp3',
error: 'error.mp3'
// ok: 'ok.mp3'
})
...
]
Audio Player Command Line
MAC OSX :
afplay
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/afplay.1.html
afplay
is build-in command line on macOS; you don't have to do anything for it.
UNIX :
mpg123
http://www.mpg123.de/
$ sudo apt-get install mpg123
Windows :
dlc
http://dlcplayer.jimdo.com/
dlc
is build-in now, so you don't have to install command line by self.- You still can download dlcplayer from here if you want.
License
MIT