How to use webpack-sentry-plugin - 2 common examples

To help you get started, we’ve selected a few webpack-sentry-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 web-pal / chronos-timetracker / webpack.config.renderer.prod.js View on Github external
'process.env.DISABLE_MIXPANEL': JSON.stringify(process.env.DISABLE_MIXPANEL || '""'),
    'process.env.DISABLE_SENTRY': JSON.stringify(process.env.DISABLE_SENTRY || '""'),
  }),

  new ExtractTextPlugin({
    filename: 'name.css',
  }),

  new webpack.optimize.OccurrenceOrderPlugin(),
  // new BundleAnalyzerPlugin(),
];


if (process.env.UPLOAD_SENTRY !== '0' && process.env.DISABLE_SENTRY !== '1') {
  plugins.push(
    new SentryPlugin({
      organisation: 'webpal',
      project: 'chronos-desktop',
      apiKey: process.env.SENTRY_API_KEY,
      release: `${pjson.version}_${process.platform}`,
    }),
  );
}

export default merge.smart(baseConfig, {
  devtool: 'cheap-source-map',

  target: 'electron-renderer',

  entry: {
    main: ['babel-polyfill', './app/index'],
    screenPopup: ['babel-polyfill', './app/screenPopup'],
github web-pal / DBGlass / webpack.config.renderer.prod.js View on Github external
* Babli is an ES6+ aware minifier based on the Babel toolchain (beta)
    */
  new BabiliPlugin(),

  new ExtractTextPlugin('style.css'),

  new BundleAnalyzerPlugin({
    analyzerMode: process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
    openAnalyzer: process.env.OPEN_ANALYZER === 'true',
  }),
];


if (process.env.UPLOAD_SENTRY !== '0') {
  plugins.push(
    new SentryPlugin({
      organisation: 'webpal',
      project: 'DBGlass',
      apiKey: '9eacb1a468a41b29bd005a1a46c039644fe1ca5ea614540b9e6b03db719a5ee',
      release: `${pjson.version}_${process.platform}`,
    }),
  );
}

export default merge.smart(baseConfig, {
  devtool: 'source-map',

  target: 'electron-renderer',


  entry: ['babel-polyfill', './app/index'],

webpack-sentry-plugin

Webpack plugin to upload source maps to Sentry

MIT
Latest version published 5 years ago

Package Health Score

51 / 100
Full package analysis

Popular webpack-sentry-plugin functions