mirror of
https://github.com/valitydev/fraudbusters-ui.git
synced 2024-11-06 08:35:18 +00:00
23 lines
694 B
JavaScript
23 lines
694 B
JavaScript
const webpack = require('webpack');
|
|
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
|
|
|
|
module.exports = {
|
|
plugins: [
|
|
new webpack.IgnorePlugin({
|
|
resourceRegExp: /^\.\/locale$/,
|
|
contextRegExp: /moment$/,
|
|
}),
|
|
...(process.env.SENTRY_AUTH_TOKEN
|
|
? [
|
|
new SentryWebpackPlugin({
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
org: 'vality-dev',
|
|
project: 'fraudbusters',
|
|
include: './dist',
|
|
ignore: ['node_modules', 'webpack.config.js'],
|
|
}),
|
|
]
|
|
: []),
|
|
],
|
|
};
|