Report release to Sentry

This commit is contained in:
Jordan Eldredge 2018-04-05 22:45:47 -07:00
parent 805a615345
commit 9f5e5aaa71
4 changed files with 14 additions and 2 deletions

View file

@ -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?