dashboard/webpack.extra.js

23 lines
692 B
JavaScript
Raw Normal View History

2018-12-04 17:38:16 +00:00
const webpack = require('webpack');
2021-08-25 14:52:01 +00:00
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
2018-12-04 17:38:16 +00:00
module.exports = {
2021-08-25 14:52:01 +00:00
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'],
}),
]
: []),
2021-08-25 14:52:01 +00:00
],
2018-12-04 17:38:16 +00:00
};