2.0.0 • Published 5 years ago

sentry-source-maps-webpack-plugin v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Sentry Source Maps Webpack Plugin

MIT npm version

This Webpack plugin automatically uploads source maps generated during the build to Sentry.io.

Why not use the official plugin?

The sentry-webpack-plugin doesn't allow configuration through the Webpack plugin itself or environment variables.

There are a couple of other reasons to use this plugin over the official one:

  • Use the publicPath from your Webpack configuration rather than assuming /.
  • Override the publicPath per file (useful for Node.JS code).

Installation

  1. Install the package from NPM:

    λ yarn add sentry-source-maps-webpack-plugin
  2. Follow the instructions for the official plugin regarding getting a authentication token:

  3. Add the plugin to your Webpack configuration:

    const SentrySourceMapsPlugin = require('sentry-source-maps-webpack-plugin');
    
    const config = {
        plugins: [
            new SentrySourceMapsPlugin({
                org: 'my-org',
                project: 'my-project',
                authToken: 'sentry auth token',
                version: '1.0',
    
                // not required
                retries: 5,
                timeout: 1000,
                publicPaths: {
                    'server.js': '/',
                    'server.js.map': '/',
                },
            }),
        ]
    };
  4. Make sure to specify the exact same version when configuring Raven:

2.0.0

5 years ago

1.0.3

6 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago