How to use @sentry/webpack-plugin - 3 common examples

To help you get started, we’ve selected a few @sentry/webpack-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WorldBrain / Memex / build / plugins.js View on Github external
}),
        new CssExtractPlugin({
            filename: '[name].css',
        }),
    ]

    if (mode === 'development') {
        plugins.push(
            new HardSourcePlugin(),
            // new WebExtReloadPlugin({
            //     port: webExtReloadPort,
            // }),
        )
    } else if (mode === 'production') {
        plugins.push(
            new SentryPlugin({
                release: process.env.npm_package_version,
                include: output.path,
                dryRun: !shouldPackage,
            }),
        )
    }

    // CI build doesn't need to use linting plugins
    if (isCI) {
        return [...plugins, initTsPlugin(false)]
    }

    if (notifsEnabled) {
        plugins.push(
            new BuildNotifPlugin({
                title: 'Memex Build',
github django-stars / frontend-skeleton / presets / sentry.js View on Github external
export default function(config) {
  return group([
    env('production', [
      addPlugins([
        isSentryConfigured && new SentryWebpackPlugin({
          include: 'src/app',
          ignoreFile: '.sentrycliignore',
        }),
      ].filter(Boolean)),
    ]),
  ])
}
github Superjo149 / auryo / webpack.config.production.js View on Github external
import OptimizeCSSAssetsPlugin from 'optimize-css-assets-webpack-plugin';
import path from 'path';
import webpack from 'webpack';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import merge from 'webpack-merge';
import baseConfig from './webpack.config.base';
import { version } from "./src/package.json";

const UglifyJSPlugin = require('uglifyjs-webpack-plugin')


const plugins = [];


if (process.env.SENTRY_AUTH_TOKEN) {
    plugins.push(new SentryPlugin({
        release: version,
        include: ['./src/dist', './src/main.js', './src/main.js.map'],
        ignore: ['node_modules', 'webpack.config.js']
    }))
}


export default merge(baseConfig, {
    mode: 'production',

    target: 'electron-renderer',

    entry: [path.join(__dirname, 'src', 'renderer', 'index.jsx')],

    output: {
        path: path.join(__dirname, 'src/dist'),

@sentry/webpack-plugin

Official Sentry Webpack plugin

BSD-3-Clause
Latest version published 11 days ago

Package Health Score

95 / 100
Full package analysis

Popular @sentry/webpack-plugin functions