Writes webpack compile status to a temporary file to be read with BitBar
npm install bitbar-webpack-status-pluginThe plugin simply writes one of the following statuses:
- -1 (red), failed build
- 0 (yellow), build in progress
- 1 (green), build successful
Into a file /tmp/webpack-status.
Should be used in conjunction with BitBar to display
webpack compilation status in OSX status bar.
npm install bitbar-webpack-status-plugin --save-dev
``js
var BitBarWebpackStatusPlugin = require('bitbar-webpack-status-plugin');
// webpack configuration
var config = {
entry: …,
output: {
path: …,
filename: …
},
plugins: [
new BitBarWebpackStatusPlugin()
]
};
module.exports = config;
`
#### filePath
You can configure the file where the status is written with this option.
`js
var BitBarWebpackStatusPlugin = require('bitbar-webpack-status-plugin');
// webpack configuration
var config = {
entry: …,
output: {
path: …,
filename: …
},
plugins: [
new BitBarWebpackStatusPlugin({ filePath: "/tmp/whatever-status" })
]
};
module.exports = config;
``
The plugin can be used in conjuction with
BitBar Script
present in this repository to display build process status in OSX status bar.