From 7c587c29aa6788cdb0a050de8d50feb5d532b4d5 Mon Sep 17 00:00:00 2001 From: willyb321 Date: Mon, 19 Nov 2018 07:12:36 +1100 Subject: [PATCH] add build reporter plugin --- webpack.config.prod.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 0db1e2ae..55fb4b63 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const { InjectManifest } = require('workbox-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const { BugsnagSourceMapUploaderPlugin } = require('webpack-bugsnag-plugins'); +const { BugsnagSourceMapUploaderPlugin, BugsnagBuildReporterPlugin } = require('webpack-bugsnag-plugins'); const pkgJson = require('./package'); const buildDate = new Date(); @@ -48,8 +48,13 @@ module.exports = { disable: false, allChunks: true }), + new BugsnagBuildReporterPlugin({ + apiKey: 'ba9fae819372850fb660755341fa6ef5', + appVersion: `${pkgJson.version}-${buildDate.toISOString()}` + }, { /* opts */ }), new BugsnagSourceMapUploaderPlugin({ apiKey: 'ba9fae819372850fb660755341fa6ef5', + overwrite: true, appVersion: `${pkgJson.version}-${buildDate.toISOString()}` }), new InjectManifest({