mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
add build reporter plugin
This commit is contained in:
@@ -4,7 +4,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
const { InjectManifest } = require('workbox-webpack-plugin');
|
const { InjectManifest } = require('workbox-webpack-plugin');
|
||||||
const CopyWebpackPlugin = require('copy-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 pkgJson = require('./package');
|
||||||
const buildDate = new Date();
|
const buildDate = new Date();
|
||||||
|
|
||||||
@@ -48,8 +48,13 @@ module.exports = {
|
|||||||
disable: false,
|
disable: false,
|
||||||
allChunks: true
|
allChunks: true
|
||||||
}),
|
}),
|
||||||
|
new BugsnagBuildReporterPlugin({
|
||||||
|
apiKey: 'ba9fae819372850fb660755341fa6ef5',
|
||||||
|
appVersion: `${pkgJson.version}-${buildDate.toISOString()}`
|
||||||
|
}, { /* opts */ }),
|
||||||
new BugsnagSourceMapUploaderPlugin({
|
new BugsnagSourceMapUploaderPlugin({
|
||||||
apiKey: 'ba9fae819372850fb660755341fa6ef5',
|
apiKey: 'ba9fae819372850fb660755341fa6ef5',
|
||||||
|
overwrite: true,
|
||||||
appVersion: `${pkgJson.version}-${buildDate.toISOString()}`
|
appVersion: `${pkgJson.version}-${buildDate.toISOString()}`
|
||||||
}),
|
}),
|
||||||
new InjectManifest({
|
new InjectManifest({
|
||||||
|
|||||||
Reference in New Issue
Block a user