Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rushi/webpack-slack-notifier

Send a slack notification message using webpack
https://github.com/rushi/webpack-slack-notifier

slack webpack webpack2

Last synced: 3 days ago
JSON representation

Send a slack notification message using webpack

Awesome Lists containing this project

README

        

## webpack-slack-notifier

This is a webpack plugin that will send a message using the [slack-node](https://www.npmjs.com/package/slack-node) plugin.

### Usage

Install the plugin using `npm install webpack-slack-notifier`

Add it in your webpack configuration:
```js
const SlackPlugin = require('webpack-slack');
```

In your plugins:
```js
"plugins": [
new SlackPlugin({
webhookUri: 'https://hooks.slack.com/my-webhook-uri',
username: 'Incoming Webhook',
channel: '#general',
text: 'Hello, world'
});
]
```

For more options for `SlackPlugin` see the documentation for [slack-node](https://www.npmjs.com/package/slack-node).