# webpack-anybar-plugin

> A webpack AnyBar watch notifier

Latest version **4.2.1** (published 2019-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-anybar-plugin
pnpm add webpack-anybar-plugin
yarn add webpack-anybar-plugin
bun add webpack-anybar-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.2.1 |
| Published | 2019-09-30 |
| First published | 2016-03-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | mrydengren |
| Keywords | webpack, plugin, AnyBar |

## Links

- npm: https://www.npmjs.com/package/webpack-anybar-plugin
- Repository: https://github.com/mrydengren/webpack-anybar-plugin
- Homepage: https://github.com/mrydengren/webpack-anybar-plugin#readme
- Issues: https://github.com/mrydengren/webpack-anybar-plugin/issues
- npm.io page: https://npm.io/package/webpack-anybar-plugin

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^2.4.0
- [anybar](https://npm.io/package/anybar.md) ^3.0.0
- [lodash.defaultsdeep](https://npm.io/package/lodash.defaultsdeep.md) ^4.6.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 4.2.1 (latest) — 2019-09-30
- 4.2.0 — 2018-07-12
- 4.1.0 — 2018-04-18
- 4.0.0 — 2018-04-04
- 3.0.2 — 2017-06-21
- 3.0.1 — 2017-05-30
- 3.0.0 — 2017-03-26
- 2.2.0 — 2016-05-29
- 2.1.0 — 2016-04-05
- 2.0.0 — 2016-04-05
- 1.0.0 — 2016-03-29

## README

# webpack-anybar-plugin

> A webpack AnyBar menubar status indicator

[![npm version](https://img.shields.io/npm/v/webpack-anybar-plugin.svg?style=flat-square)](https://www.npmjs.com/package/webpack-anybar-plugin)

Use version 4 of this project for the webpack tapable plugin API (introduced in webpack 4). Use version 3 for the older webpack plugin syntax.

## Install

Install [AnyBar](https://github.com/tonsky/AnyBar), an OS X menubar status indicator, or any of its forks such as [this one](https://github.com/sfsam/AnyBar) which adds the ability to define custom colors and display text.

```
yarn add --dev webpack-anybar-plugin
```

### Usage

Passing options to the plugin.

```
const WebpackAnybarPlugin = require('webpack-anybar-plugin');

module.exports = {
    // webpack configuration ...
    plugins: [
        new WebpackAnybarPlugin({
            applicationPath: '<absolute path to AnyBar>',  // default: '/Applications/AnyBar.app'
            autoStart: <boolean>,                          // default: true
            port: <port number>,                           // default: 1738
            status: {
                error: '<color or function(stats)>',       // default: 'red'
                pending: '<color or function(compiler)>',  // default: 'orange'
                success: '<color or function(stats)>'      // default: 'green'
            },
        }),
    ],
};
```

Passing a context name to the plugin.

```
const WebpackAnybarPlugin = require('webpack-anybar-plugin');

module.exports = {
    // webpack configuration ...
    plugins: [
        new WebpackAnybarPlugin('context'),
    ],
};
```

It's also possible to specify options in `anybar.config.js`. Adding `anybar.config.js` to `.gitignore` allows different team members to use different options. Options defined in `anybar.config.js` takes precedence to options defined in `webpack.config.js`.

```
module.exports = {
    applicationPath: '<absolute path to AnyBar>',  // default: '/Applications/AnyBar.app'
    autoStart: <boolean>,                          // default: true
    port: <port number>,                           // default: 1738
    status: {
        error: '<color or function(stats)>',       // default: 'red'
        pending: '<color or function(compiler)>',  // default: 'orange'
        success: '<color or function(stats)>'      // default: 'green'
    }
};
```

When using a context.

```
module.exports = {
    context: {
        applicationPath: '<absolute path to AnyBar>',  // default: '/Applications/AnyBar.app'
        autoStart: <boolean>,                          // default: true
        port: <port number>,                           // default: 1738
        status: {
            error: '<color or function(stats)>',       // default: 'red'
            pending: '<color or function(compiler)>',  // default: 'orange'
            success: '<color or function(stats)>'      // default: 'green'
        },
    },
};
```

## License

MIT

---
_Source: https://npm.io/package/webpack-anybar-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
