зеркало из
1
0
Форкнуть 0
This commit is contained in:
Ben Gourley 2018-01-12 15:38:16 +00:00
Родитель 01f27594b2
Коммит 185949c3fa
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -16,7 +16,7 @@ npm install --save-dev webpack-bugsnag-plugins
const { BugsnagBuildReporterPlugin } = require('webpack-bugsnag-plugins')
```
## `BugsnagBuildReporterPlugin(build, opts): stream`
### `BugsnagBuildReporterPlugin(build, opts): stream`
Reports your application's build to Bugsnag. It can auto detect source control from `.git`, `.hg` and `package.json`.
This plugin hooks into the `'after-emit'` event once all output files have been generated by the Webpack compiler. If anything causes the compilation to fail before this step, the build report will not get sent.
@ -37,7 +37,7 @@ This plugin hooks into the `'after-emit'` event once all output files have been
- `path: string` the path to search for source control info, defaults to `process.cwd()`
- `endpoint: string` post the build payload to a URL other than the default (`https://build.bugsnag.com`)
### Usage
#### Usage
```js
const { BugsnagBuildReporterPlugin } = require('webpack-bugsnag-plugins')