17 lines
385 B
JavaScript
17 lines
385 B
JavaScript
|
const SentryPlugin = require('@sentry/webpack-plugin');
|
||
|
|
||
|
module.exports = (config, context) => {
|
||
|
const additionalPlugins = process.env.SENTRY_AUTH_TOKEN
|
||
|
? [
|
||
|
new SentryPlugin({
|
||
|
include: './dist/apps/token',
|
||
|
project: 'tokenvegaxyz',
|
||
|
}),
|
||
|
]
|
||
|
: [];
|
||
|
return {
|
||
|
...config,
|
||
|
plugins: [...additionalPlugins, ...config.plugins],
|
||
|
};
|
||
|
};
|