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"], }), ], }, };