# webpack-logrocket-plugin

> SDK Integrations

Latest version **0.0.2** (published 2022-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-logrocket-plugin
pnpm add webpack-logrocket-plugin
yarn add webpack-logrocket-plugin
bun add webpack-logrocket-plugin
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-04-14 |
| First published | 2022-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | rishabhgupta |
| Maintainers | rishabhgupta293 |
| Keywords | rishabh, logrocket, webpack, plugin |

## Links

- npm: https://www.npmjs.com/package/webpack-logrocket-plugin
- Repository: https://github.com/rishabhgupta/webpack-logrocket-plugin
- Homepage: https://github.com/rishabhgupta/webpack-logrocket-plugin#readme
- Issues: https://github.com/rishabhgupta/webpack-logrocket-plugin/issues
- npm.io page: https://npm.io/package/webpack-logrocket-plugin

## Dependencies (1)

- [logrocket-cli](https://npm.io/package/logrocket-cli.md) ^0.12.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2022-04-14
- 0.0.1 — 2022-04-14
- 0.0.0 — 2022-04-13

## README

# Logrocket Webpack Plugin

A webpack plugin acting as an interface to [Logrocket CLI](https://github.com/LogRocket/logrocket-cli)

## Installation
`webpack-logrocket-plugin` requires at least webpack 4 or greater.

Using npm:

```npm install webpack-logrocket-plugin --save-dev```

Using yarn:

```yarn add webpack-logrocket-plugin --dev```

## Usage
```
const WebpackLogrocketPlugin = require('webpack-logrocket-plugin);

const config = {
  plugins: [
    new WebpackLogrocketPlugin({
      path: '',         
      release: '',     
      apiKey: '',      
      urlPrefix: '', 
    }),
  ],
};
```

### Options
|Option     |Type    |Required   |Description 
|-----------|--------|-----------|-----------
|path       |`string`|required   | One or more paths that Sentry CLI should scan recursively for sources. It will upload all .map files and match associated .js files.
|release    |`string`|required   | Unique identifier for the release.
|apikey     |`string`|required   | Logrocket API Key, used to communicate with logrocket.
|urlPrefix  |`string`|optional   | URL prefix to add to the beginning of all filenames. Defaults to ~/ but you might want to set this to the full URL. This is also useful if your files are stored in a sub folder. eg: url-prefix '~/static/js'.

Check official logrocket cli [documentation](https://docs.logrocket.com/docs/stacktraces#section-uploading-source-maps-to-logrocket) to understand above options.

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