Add sentry error logging.

This commit is contained in:
Patrick Fic
2021-08-18 15:57:29 -07:00
parent a269fd3ad8
commit a57e35354d
4 changed files with 54555 additions and 10151 deletions

View File

@@ -1,9 +1,22 @@
// craco.config.js
const TerserPlugin = require("terser-webpack-plugin");
const CracoLessPlugin = require("craco-less");
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
module.exports = {
plugins: [
new SentryWebpackPlugin({
// sentry-cli configuration
authToken:
"6b45b028a02342db97a9a2f92c0959058665443d379d4a3a876430009e744260",
org: "snapt-software",
project: "imexonline",
release: process.env.REACT_APP_GIT_SHA,
// webpack-specific configuration
include: ".",
ignore: ["node_modules", "webpack.config.js"],
}),
{
plugin: CracoLessPlugin,
options: {
@@ -53,4 +66,5 @@ module.exports = {
},
}),
},
devtool: "source-map",
};