1.1.2 • Published 8 years ago
bitbar-webpack-status-plugin v1.1.2
BitBar Webpack Status Plugin
The plugin simply writes one of the following statuses:
-1
(red), failed build0
(yellow), build in progress1
(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.
Installation
npm install bitbar-webpack-status-plugin --save-dev
Usage
var BitBarWebpackStatusPlugin = require('bitbar-webpack-status-plugin');
// webpack configuration
var config = {
entry: …,
output: {
path: …,
filename: …
},
plugins: [
new BitBarWebpackStatusPlugin()
]
};
module.exports = config;
Options
filePath
You can configure the file where the status is written with this option.
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;
Bitbar
The plugin can be used in conjuction with BitBar Script present in this repository to display build process status in OSX status bar.