dashboard/webpack.extra.js
2021-08-26 12:48:18 +03:00

20 lines
624 B
JavaScript

const webpack = require('webpack');
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
module.exports = {
plugins: [
new webpack.IgnorePlugin(/^\.\/locale$/, /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'],
}),
]
: []),
],
};