No sentry source maps uploaded on local build.
This commit is contained in:
parent
6edd3edf66
commit
b9dfd0e71e
|
|
@ -3,14 +3,20 @@ const SentryWebpackPlugin = require('@sentry/webpack-plugin');
|
||||||
const merge = require('webpack-merge');
|
const merge = require('webpack-merge');
|
||||||
const common = require('./craco.common.config.js');
|
const common = require('./craco.common.config.js');
|
||||||
|
|
||||||
|
const env = process.env.REACT_APP_ENVIRONMENT
|
||||||
|
|
||||||
|
const plugins = []
|
||||||
|
|
||||||
|
if(env === "PRODUCTION" || env === "STAGING") {
|
||||||
|
plugins.push(new SentryWebpackPlugin({
|
||||||
|
include: 'build',
|
||||||
|
ignore: ['node_modules', 'webpack.config.js'],
|
||||||
|
release: process.env.REACT_APP_SENTRY_RELEASE
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
webpack: {
|
webpack: {
|
||||||
plugins: [
|
plugins: plugins
|
||||||
new SentryWebpackPlugin({
|
|
||||||
include: 'build',
|
|
||||||
ignore: ['node_modules', 'webpack.config.js'],
|
|
||||||
release: process.env.REACT_APP_SENTRY_RELEASE
|
|
||||||
})
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user