Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rushi/webpack-slack-notifier
- Owner: rushi
- Created: 2017-03-21T15:34:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T17:27:38.000Z (over 7 years ago)
- Last Synced: 2024-04-26T16:04:25.342Z (7 months ago)
- Topics: slack, webpack, webpack2
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).