mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
23 lines
692 B
JavaScript
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'],
|
|
}),
|
|
]
|
|
: []),
|
|
],
|
|
};
|