From a4f3ce113f163b1eb59087fafc51f9c1fd4199c8 Mon Sep 17 00:00:00 2001 From: Nicholas Meisenheimer <76002357+souredoutlook@users.noreply.github.com> Date: Mon, 20 Jun 2022 09:22:24 -0400 Subject: [PATCH] Add example to options.include --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 16cce5d..cde1875 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,32 @@ Also, check the [example](example) directory. | sourceMapReference | `boolean` | optional | See above. | | rewrite | `boolean` | optional | See above. | +Example: + +``` +const SentryCliPlugin = require('@sentry/webpack-plugin'); + +const config = { + plugins: [ + new SentryCliPlugin({ + include: [ + { + paths: ['./packages'], + urlPrefix: '~/path/to/packages', + }, + { + paths: ['./client'], + urlPrefix: '~/path/to/client', + }, + ], + ignoreFile: '.sentrycliignore', + ignore: ['node_modules', 'webpack.config.js'], + configFile: 'sentry.properties', + }), + ], +}; +``` + #### options.setCommits: | Option | Type | Required | Description |