生产环境通过SourceMap还原压缩后JavaScript错误,快速定位异常 前端错误监控之SourceMap还原Vue Demo 实现 前端错误监控之用户行为回放
实际效果
- npm i
- npm run build
- cd fe-view/dist && http-server -p 8080 or live-server -p 8080 ( or other static server,if use http-server, you need npm i http-server -g or npm i -g live-server)
- npm run dev
- open http://localhost:8080/,
- open http://localhost:3000/sourcemap.html