mirror of
https://github.com/RabbyHub/Rabby.git
synced 2026-01-14 06:37:59 -05:00
33 lines
814 B
JavaScript
33 lines
814 B
JavaScript
const webpack = require('webpack');
|
|
const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
|
|
|
|
const config = {
|
|
mode: 'production',
|
|
devtool: 'hidden-source-map',
|
|
performance: {
|
|
maxEntrypointSize: 2500000,
|
|
maxAssetSize: 2500000,
|
|
},
|
|
plugins: [
|
|
new webpack.SourceMapDevToolPlugin(),
|
|
new webpack.DefinePlugin({
|
|
'process.env.BUILD_ENV': JSON.stringify('PRO'),
|
|
}),
|
|
sentryWebpackPlugin({
|
|
include: './dist',
|
|
ignoreFile: '.sentrycliignore',
|
|
ignore: ['node_modules', 'webpack.config.js'],
|
|
configFile: 'sentry.properties',
|
|
release: {
|
|
name: process.env.VERSION
|
|
},
|
|
org: process.env.SENTRY_ORG,
|
|
project: process.env.SENTRY_PROJECT,
|
|
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
}),
|
|
],
|
|
};
|
|
|
|
module.exports = config;
|