anybar-webpack-plugin
v1.0.2
Published
See the status of webpack builds in macOS menubar via Anybar.
Downloads
525
Readme
anybar-webpack-plugin
See the status of webpack builds in macOS menubar via Anybar.
- Supports multiple webpack builds.
- Indicates whether watch is running or not.
- Compatible with webpack 5.
Install
- Install Anybar.
- Install anybar-webpack-plugin.
$ yarn add -D anybar-webpack-plugin
Configure
const AnybarWebpackPlugin = require('anybar-webpack-plugin');
module.exports = {
// Your webpack configuration ...
plugins: [
new AnybarWebpackPlugin({
port: 1738 // default
}),
// etc.
],
};
Use
- Start anybar, for example,
open -na AnyBar
, which binds to UDP port 1738 by default. - Run your webpack build.
- See anybar indicator update to reflect the status of the build.
For multiple webpack builds, bind AnyBar to different ports:
$ ANYBAR_TITLE=main ANYBAR_PORT=1738 open -na AnyBar
$ ANYBAR_TITLE=other ANYBAR_PORT=1739 open -na AnyBar
And specify port
in each webpack build config.
- Hollow = build/watch is not running
- Yellow = build/watch is compiling
- Green = last watch compilation succeeded; watching for changes
- Red exclamation (not picture) = last compilation errored