Check if minified files are still used
I think minified JS files are no longer being but they are still generated in the production archive.
Maybe we should remove them then?
As far a I know, they're still used if they're present; see Html::getMiniFile() and FrontEndAssetExtension::jsPath().
They should be used when using the js_path Twig function.
I haven't checked the code but I've compared two production instances:
GLPI 10 prod:
GLPI 11 prod:
And if I modify the common.js file on the GLPI 11 prod to add a console.log statement, it is printed in the console (which suggest the min file is not used).
So maybe there is something more to investigate here? Unless it is the prod I am testing on which may not be setup correctly.
Is debug mode enabled?
Is debug mode enabled?
No
Actually, the "file_exists" check in FrontEndAssetsExtension may be the cause if JS files are all in the public folder but referenced without that in the path.