Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sandinmyjoints/anybar-webpack-plugin
See the status of webpack builds in macOS menubar via Anybar.
https://github.com/sandinmyjoints/anybar-webpack-plugin
anybar build-status macos notifications webpack webpack-plugin
Last synced: 7 days ago
JSON representation
See the status of webpack builds in macOS menubar via Anybar.
- Host: GitHub
- URL: https://github.com/sandinmyjoints/anybar-webpack-plugin
- Owner: sandinmyjoints
- Created: 2021-06-28T13:38:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T13:05:33.000Z (over 2 years ago)
- Last Synced: 2024-11-28T05:36:22.170Z (24 days ago)
- Topics: anybar, build-status, macos, notifications, webpack, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anybar-webpack-plugin
See the status of webpack builds in macOS menubar via
[Anybar](https://github.com/tonsky/AnyBar).- Supports multiple webpack builds.
- Indicates whether watch is running or not.
- Compatible with webpack 5.## Install
1. Install [Anybar](https://github.com/tonsky/AnyBar).
1. Install anybar-webpack-plugin.``` shell
$ yarn add -D anybar-webpack-plugin
```## Configure
``` javascript
const AnybarWebpackPlugin = require('anybar-webpack-plugin');module.exports = {
// Your webpack configuration ...
plugins: [
new AnybarWebpackPlugin({
port: 1738 // default
}),
// etc.
],
};
```## Use
1. Start anybar, for example, `open -na AnyBar`, which binds to UDP port 1738
by default.
1. Run your webpack build.
1. See anybar indicator update to reflect the status of the build.For multiple webpack builds, bind AnyBar to different ports:
``` shellsession
$ 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