https://github.com/bakunyo/bugsnag-sourcemap-webpack-plugin
A Webpack plugin to upload sourcemaps to Bugsnag after build
https://github.com/bakunyo/bugsnag-sourcemap-webpack-plugin
bugsnag webpack
Last synced: about 1 month ago
JSON representation
A Webpack plugin to upload sourcemaps to Bugsnag after build
- Host: GitHub
- URL: https://github.com/bakunyo/bugsnag-sourcemap-webpack-plugin
- Owner: bakunyo
- License: mit
- Created: 2016-12-18T07:46:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T03:40:18.000Z (about 7 years ago)
- Last Synced: 2024-08-09T18:55:36.158Z (10 months ago)
- Topics: bugsnag, webpack
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/bugsnag-sourcemap-webpack-plugin
- Size: 29.3 KB
- Stars: 13
- Watchers: 5
- Forks: 9
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BugsnagSourceMapPlugin
  [](https://badge.fury.io/js/bugsnag-sourcemap-webpack-plugin)A [Webpack](http://webpack.github.io/) plugin to upload sourcemaps to [Bugsnag](https://bugsnag.com/) after build
## Installation
```
$ npm install --save-dev bugsnag-sourcemap-webpack-plugin
```## Usage
In your webpack.config.js
```javascript
const BugsnagSourceMapPlugin = require('bugsnag-sourcemap-webpack-plugin');module.exports = {
// your settings for webpack
devtool: 'source-map',
plugins: [
new BugsnagSourceMapPlugin({
apiKey: 'YOUR_BUGSNAG_API_KEY',
publicPath: 'https://your.site/assets/path'
}),
]
}
```## Options
|key|required|content|default|
|:--|:--|:--|:--|
|apiKey|y|the Bugsnag API key that is used in your app.|-|
|publicPath|y|the Base hosted url of your compiled assets.|-|
|appVersion||the version of the app that the source map applies to as set in the JavaScript notifier.|-|
|silent||whether or not ignore js errors in upload to Bugsnag.|false|
|overwrite||whether to overwrite any existing version of files.|false|
|uploadSource||whether to upload source file (see `minifiedFile` in Bugsnag docs).|false|
|removeSourceMap||whether to remove sourcemap file after uploaded.|true|## Reference
[Bugsnag - Sourcemap Upload API](https://docs.bugsnag.com/api/js-source-map-upload/)