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
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar