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
- Unofficial Ref: Stackoverflow
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión