webpack-airbrake-private-sourcemaps

0.2.0 • Public • Published

Webpack Airbrake Private Sourcemaps Plugin

Basic webpack plugin that uploads all sourcemap files from user defined directories to Airbrake after compilation is complete.

Meant to help with Airbrake private sourcemapping implementation.

Implementation Example:

// require plugin
const AirbrakePlugin = require('webpack-airbrake-private-sourcemaps');
 
// webpack plugin definition
plugins: [
  new AirbrakePlugin({
    projectId: '123', // airbrake project id
    projectKey: 'a1b2c3', // airbrake project/auth key
    host: 'https://www.github.com/dist', // your website url where the distribution files will be hosted
    directories: ['wwwroot', 'dist'], // directories to scan and upload sourcemaps from
    logging: false, // boolean to show or hide plugin logs
  })
]

Package Sidebar

Install

npm i webpack-airbrake-private-sourcemaps

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

6.1 kB

Total Files

4

Last publish

Collaborators

  • bk3