问题:
利用@sentry/webpack-plugin插件上传sourceMap,源文件上传成功了,可是异常结果还是不能映射到源文件
配置代码:
//webpack.prod.conf.jsconst SentryPlugin = require('@sentry/webpack-plugin');new SentryPlugin({ release: process.env.RELEASE_VERSION, include: path.join(__dirname,'../dist/static/js/'), ignore: ['node_modules', 'webpack.config.js'], urlPrefix : '~/static/js'’ }),
sentry 是自己搭建的服务器
执行下面代码后,效果如下
node build/build.js
miroku1
相关分类