# webpack-minimal-sentry-plugin

> A small webpack 4 plugin that uploads sources to Sentry

Latest version **1.0.0** (published 2018-07-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install webpack-minimal-sentry-plugin
pnpm add webpack-minimal-sentry-plugin
yarn add webpack-minimal-sentry-plugin
bun add webpack-minimal-sentry-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-05 |
| First published | 2018-07-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | jpreynat |
| Maintainers | jpreynat |

## Links

- npm: https://www.npmjs.com/package/webpack-minimal-sentry-plugin
- Repository: https://github.com/GitbookIO/webpack-minimal-sentry-plugin
- npm.io page: https://npm.io/package/webpack-minimal-sentry-plugin

## Dependencies (3)

- [sentry-api](https://npm.io/package/sentry-api.md) ^0.1.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0-beta.51
- [es6-promise-pool](https://npm.io/package/es6-promise-pool.md) ^2.5.0

## Recent versions

- 1.0.0 (latest) — 2018-07-05

## README

# webpack-minimal-sentry-plugin

A small webpack 4 plugin that uploads sources to Sentry.

# Install

```bash
$ yarn install --dev webpack-minimal-sentry-plugin
```

# Usage

```js
/* webpack.config.js */
const WebpackMinimalSentryPlugin = require('webpack-minimal-sentry-plugin');

module.exports = {
    // ...
    plugins: [
        // ...
        new WebpackMinimalSentryPlugin({
            authToken: 'personal_auth_token',
            organization: 'organization_slug',
            project: 'project_slug',
            version: 'release_version'
        })
    ]
};
```

# Options

```js
type Options = {
    authToken: string,
    organization: string,
    project: string,
    version: string,
    deleteSourcemaps?: boolean,
    filenameTransform?: string => string,
    uploadConcurrency?: number
};
```

## Required

`authToken`: [Personal Sentry Auth token](https://sentry.io/settings/account/api/auth-tokens/) including at least the `project:releases` scope.

`organization`: Sentry organization in which to create releases/upload sources.

`project`: Sentry project in which to create releases/upload sources.

`version`: A version identifier for this release. Can be a version number, a commit hash etc.

## Optional

`deleteSourcemaps`: Delete the sourcemaps at the end of the webpack build.

`filenameTransform`: A function to transform the webpack asset name before uploading to Sentry.

`uploadConcurrency`: Maximum number of sources uploaded at the same time. Can help prevent network errors in case of a webpack build containing numerous assets.

---
_Source: https://npm.io/package/webpack-minimal-sentry-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
