@jysd/umi-plugin-sentry
v0.1.3
Published
umi plugin for sentry
Downloads
1
Readme
umi-plugin-sentry
发布 npm 包
npm login --registry=https://registry.npmjs.org yarn run pub
npm 包安装
yarn add --dev @jysd/umi-plugin-sentry
# OR
npm install --save-dev @jysd/umi-plugin-sentry
http 安装(弃用)
npm install git+http://gitlab.joinuscn.com/package/umi-plugin-sentry.git
or ssh安装(弃用)
npm install git+ssh://[email protected]:package/umi-plugin-sentry.git
Umi plugin for sentry.
Install
yarn add --dev @jysd/umi-plugin-sentry # OR npm install --save-dev @jysd/umi-plugin-sentry
Use
Just setup the plugin on .umirc.js
export default {
plugins: [
// ...
['umi-plugin-sentry', options],
// ...
],
}
Options
| name | type | default |
|------------------------------------|----------------------------------|----------------------------------------------|
| dsn | string (required in production) | process.env.SENTRY_DSN
|
| log (log to console before send) | boolean (optional) | NODE_ENV === 'development' ? true : false
|