1.0.0 • Published 5 years ago

craco-sentry-plugin v1.0.0

Weekly downloads
17
License
MIT
Repository
github
Last release
5 years ago

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