mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
Report release to Sentry
This commit is contained in:
parent
805a615345
commit
9f5e5aaa71
4 changed files with 14 additions and 2 deletions
|
|
@ -1,8 +1,11 @@
|
|||
const webpack = require("webpack");
|
||||
const merge = require("webpack-merge");
|
||||
const workboxPlugin = require("workbox-webpack-plugin");
|
||||
const GitRevisionPlugin = require("git-revision-webpack-plugin");
|
||||
const common = require("./webpack.common.js");
|
||||
|
||||
const gitRevisionPlugin = new GitRevisionPlugin();
|
||||
|
||||
const config = merge(common, {
|
||||
devtool: "source-map",
|
||||
plugins: [
|
||||
|
|
@ -12,7 +15,8 @@ const config = merge(common, {
|
|||
},
|
||||
SENTRY_DSN: JSON.stringify(
|
||||
"https://12b6be8ef7c44f28ac37ab5ed98fd294@sentry.io/146021"
|
||||
)
|
||||
),
|
||||
COMMITHASH: JSON.stringify(gitRevisionPlugin.commithash())
|
||||
}),
|
||||
new webpack.optimize.UglifyJsPlugin({
|
||||
// TODO: Is this needed with the devtool setting above?
|
||||
|
|
|
|||
|
|
@ -46,7 +46,10 @@ function filterBreadcrumbActions(action) {
|
|||
return !noisy;
|
||||
}
|
||||
|
||||
Raven.config(sentryDsn).install();
|
||||
Raven.config(sentryDsn, {
|
||||
/* global COMMITHASH */
|
||||
release: COMMITHASH || "DEV"
|
||||
}).install();
|
||||
|
||||
// Don't prompt user to install Winamp2-js. It's probably not
|
||||
// what they want.
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@
|
|||
"eslint-plugin-prettier": "^2.2.0",
|
||||
"eslint-plugin-react": "^7.7.0",
|
||||
"file-loader": "^1.1.5",
|
||||
"git-revision-webpack-plugin": "^2.5.1",
|
||||
"gzip-size-cli": "^2.0.0",
|
||||
"html-webpack-plugin": "^3.0.6",
|
||||
"http-server": "^0.11.1",
|
||||
|
|
|
|||
|
|
@ -3017,6 +3017,10 @@ getpass@^0.1.1:
|
|||
dependencies:
|
||||
assert-plus "^1.0.0"
|
||||
|
||||
git-revision-webpack-plugin@^2.5.1:
|
||||
version "2.5.1"
|
||||
resolved "https://registry.yarnpkg.com/git-revision-webpack-plugin/-/git-revision-webpack-plugin-2.5.1.tgz#3fb4398f376cf27678d6de96ba2669b518645e78"
|
||||
|
||||
glob-base@^0.3.0:
|
||||
version "0.3.0"
|
||||
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue