disable sentry on electron
This commit is contained in:
parent
1f8848ab64
commit
bb5e4232bc
1 changed files with 10 additions and 12 deletions
|
@ -7,12 +7,10 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const { DefinePlugin, ProvidePlugin } = require('webpack');
|
const { DefinePlugin, ProvidePlugin } = require('webpack');
|
||||||
const { getIfUtils, removeEmpty } = require('webpack-config-utils');
|
const { getIfUtils, removeEmpty } = require('webpack-config-utils');
|
||||||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
||||||
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
|
|
||||||
|
|
||||||
const STATIC_ROOT = path.resolve(__dirname, 'static/');
|
const STATIC_ROOT = path.resolve(__dirname, 'static/');
|
||||||
const DIST_ROOT = path.resolve(__dirname, 'dist/');
|
const DIST_ROOT = path.resolve(__dirname, 'dist/');
|
||||||
const NODE_ENV = process.env.NODE_ENV || 'development';
|
const NODE_ENV = process.env.NODE_ENV || 'development';
|
||||||
const hasSentryToken = process.env.SENTRY_AUTH_TOKEN !== undefined;
|
|
||||||
|
|
||||||
const { ifProduction } = getIfUtils(NODE_ENV);
|
const { ifProduction } = getIfUtils(NODE_ENV);
|
||||||
|
|
||||||
|
@ -94,16 +92,16 @@ let plugins = [
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (hasSentryToken) {
|
// if (hasSentryToken) {
|
||||||
plugins.push(
|
// plugins.push(
|
||||||
new SentryWebpackPlugin({
|
// new SentryWebpackPlugin({
|
||||||
include: './dist',
|
// include: './dist',
|
||||||
ignoreFile: '.sentrycliignore',
|
// ignoreFile: '.sentrycliignore',
|
||||||
ignore: ['node_modules', 'webpack.config.js', 'webworkers'],
|
// ignore: ['node_modules', 'webpack.config.js', 'webworkers'],
|
||||||
configFile: 'sentry.properties',
|
// configFile: 'sentry.properties',
|
||||||
})
|
// })
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
const renderConfig = {
|
const renderConfig = {
|
||||||
target: 'electron-renderer',
|
target: 'electron-renderer',
|
||||||
|
|
Loading…
Reference in a new issue