dashboard/webpack.extra.js
2022-01-14 14:06:44 +03:00

23 lines
692 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: 'rbkmoney-fd',
project: 'dashboard',
include: './dist',
ignore: ['node_modules', 'webpack.config.js'],
}),
]
: []),
],
};