zoukankan      html  css  js  c++  java
  • vue项目 安装sentry监控日志

    vue项目 安装sentry监控日志 https://sentry.io/chaoling/vue11/getting-started/javascript-vue/

    # Using yarn
    yarn add @sentry/vue @sentry/tracing
    
    # Using npm
    npm install --save @sentry/vue @sentry/tracing

    Capturing Source Maps // webpack.config.js

    npm install --save-dev @sentry/webpack-plugin
    const SentryWebpackPlugin = require("@sentry/webpack-plugin");
    
    module.exports = {
      // other configuration
      configureWebpack: {
        plugins: [
          new SentryWebpackPlugin({
            // sentry-cli configuration
            authToken: process.env.SENTRY_AUTH_TOKEN,
            org: "example-org",
            project: "example-project",
            release: process.env.SENTRY_RELEASE,
    
            // webpack specific configuration
            include: ".",
            ignore: ["node_modules", "webpack.config.js"],
          }),
        ],
      },
    };

  • 相关阅读:
    344.反正字符串
    125.验证回文串
    167.两数之和 II
    278.第一个错误的版本
    缓冲流
    Windows10剪贴板不能用
    chapter_21【字节流、字符流】
    属性集
    IO异常的处理
    字符流
  • 原文地址:https://www.cnblogs.com/hill-foryou/p/14856321.html
Copyright © 2011-2022 走看看