bitbar-webpack-status-plugin

Writes webpack compile status to a temporary file to be read with BitBar

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
bitbar-webpack-status-plugin
1.1.27 years ago7 years agoMinified + gzip package size for bitbar-webpack-status-plugin in KB

Readme

BitBar Webpack Status Plugin
The 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.
BitBar Webpack Status

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.