0.0.2 • Published 2 years ago

webpack-logrocket-plugin v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Logrocket Webpack Plugin

A webpack plugin acting as an interface to 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

OptionTypeRequiredDescription
pathstringrequiredOne or more paths that Sentry CLI should scan recursively for sources. It will upload all .map files and match associated .js files.
releasestringrequiredUnique identifier for the release.
apikeystringrequiredLogrocket API Key, used to communicate with logrocket.
urlPrefixstringoptionalURL 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 to understand above options.