1.0.4 • Published 3 years ago

@kukefe/sentry-plugin v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

删除 map 文件

扩展 @sentry/webpack-plugin 插件。

Sentry 上传 sourcemap 文件后,自动删除 .map 文件。

安装

已经包含 @sentry/webpack-plugin 插件,无需安装它。 配置与 @sentry/webpack-plugin 一致。

npm i @kukefe/sentry-plugin

vue 项目,在 vue.config.js 文件添加如下配置

const { KKSentrySourcPlugin } = require("@kukefe/sentry-plugin");

module.exports = {
  configureWebpack: (config) => {
    config.plugins.push(new KKSentrySourcPlugin());
  },
};