webpack-bugsnag-plugins
Version:
Webpack plugins for common Bugsnag actions
21 lines (19 loc) • 431 B
JavaScript
const BugsnagBuildReporterPlugin = require('../../../').BugsnagBuildReporterPlugin
module.exports = {
entry: './app.js',
output: {
path: __dirname,
filename: './bundle.js'
},
plugins: [
new BugsnagBuildReporterPlugin({
apiKey: 'YOUR_API_KEY',
appVersion: '1.2.3',
endpoint: `http://localhost:${process.env.PORT}`,
metadata: {
foo: 'bar',
baz: 'qux'
}
})
]
}