Greetings,
Since a deployment we made yesterday, js files for our components are appearing minified, we were wondering if we could turn it off.
I understand is better for our security, but our project has strict SLAs and we relied heavily on browser overrides for the most common support tickets and basic developments, so we were wondering if turning it off is an option in AEMAACS.
Thanks in Advance!
Best Regards
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @DanielMa63 ,
Please check if this helps - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/js-minify-in-aem-6-5/m-p/5... ? minify should be false ofcourse.
Regards,
Anupam
Hello @anupampat we have tried including this config with these values in our project
com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl.cfg.json
{
"minify": false,
"debug": true,
"gzip": true
}
But it does not seem to be working so far
Best Regards
have you tried to use debugClientlibs=true request parameter? Not sure if it sill works with ACS though.
https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-16935
Yes, that is one thing we tried after opening a ticket to support this was their response
Upon verification, I would like to inform you that there is a change in Clientlibs Minification in AEM as a Cloud Service.
Please find the details below
• Historically, minification in AEM was controlled via the HTML Library Manager OSGi config, either globally or per-clientlib.
• AEM as a Cloud Service now minifies JS files automatically at build time (via FACT tool). • This is due to a recent product update/feature toggle, so code is minified by default—even without code changes on your end. Possible solutions/workarounds: • Global/off for all clientlibs is not possible; global OSGi config is ignored in Cloud Service.
• However it is possible per clientlib: you can disable minification for individual clientlibs by adding this property: jsProcessor: [ "default:none", "min:none" ]
Could you please try the same and provide your feedback?
So far in our testing adding that property in the context.xml of the clientlib has not worked.
It seems minification is the default now for AEMAACS
In case anyone is struggling with this issue still, Adobe support helped us out and informed us that while minification is on by default in AEMAACS, you can turn it off per component adding this jsProcessor property in the content.xml for each components clientlib
Best Regards
HI @DanielMa63 ,
In AEMaaCS you cannot fully turn off minification for clientlibs because the cloud build pipeline automatically minifies and bundles JS/CSS as part of the Adobe-managed optimization process. This behavior is not configurable like on-prem.
If you need non-minified JS for debugging, the only options are:
Use local SDK (AEM as a Cloud Service local environment), where minification is off.
Use source maps in your clientlibs so you can debug readable code.
Use browser devtools “Pretty Print”.
AEMaaCS minification cannot be disabled; use source maps or local SDK for readable JS.
@DanielMa63 Just checking in! Were you able to get this resolved? If you found your own solution, sharing the details would be a big help to others who might face the same issue later on. And if one of the replies here helped, whether it fully solved the problem or simply pointed you in the right direction, marking it as accepted makes it much easier for future readers to find. Thanks again for helping close the loop and contributing to the community!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies