craco-sentry-plugin
v1.0.0
Published
A craco plugin to add @sentry/webpack-plugin to a create-react-app project
Downloads
515
Readme
Craco Sentry Plugin
This is a craco plugin that adds @sentry/webpack-plugin support to create-react-app version >= 2.
Use react-app-rewired for
create-react-app
version 1.
Installation
yarn add craco-sentry-plugin
or
npm i --save craco-sentry-plugin
then edit your craco.config.js
file to contain the plugin
const SentryPlugin = require("craco-sentry-plugin");
module.exports = function({ env }) {
return {
plugins: [{
plugin: SentryPlugin,
options: {
include: './build/',
ignoreFile: '.sentrycliignore',
ignore: ['node_modules', 'webpack.config.js', 'craco.config.js'],
configFile: 'sentry.properties'
}
}]
}
};
License
MIT