What are the *.map urls present in Glowroot monitoring

Issue

  • There are many *.map urls present while monitoring Liferay using Glowroot or any other application monitoring tool.

Environment

  • Liferay DXP 7.0 +

Resolution

  • The .map files are for JavaScript and CSS (and now TypeScript too) files that have been minified. They are called source maps. When a user minifies a file, like the angular.js file, it takes thousands of lines of pretty code and turns it into only a few lines of ugly code.
  • When the app is in production, and has an error, the source map will help take the ugly file, and will allow user to see the original version of the code. If user didn't have the source map, then any error would seem cryptic at best.

Additional Information

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助