AEM 6.5 Default minification not working for JS | Community
Skip to main content
April 18, 2024
Solved

AEM 6.5 Default minification not working for JS

  • April 18, 2024
  • 1 reply
  • 795 views

When i am enabling minify from OSGI config HTML client library manager, minify option is set with jsProcessor= min:gcc. But when after clearing the cache & Rebuild Client libraries, .min.js extension is added to the JS files, and some whitespace its removed, but not actual minification is happening. And  some of the files are still not minified, they are just loading with .min.js extension, and the content is same as it is present in .js file. Can you please help me to resolve this issue ?

I already have tried with multiple configurations for jsProcessor, but didn't work.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sravs

hi @snjkhandelwal2 ,

 

Can you try below value for jsProcessor property at your clientlib level.

   
jsProcessor="[min:gcc;languageIn=ECMASCRIPT_2016;languageOut=ECMASCRIPT_2016;compilationLevel=simple;obfuscate=true]"
 

1 reply

sravs
Community Advisor
sravsCommunity AdvisorAccepted solution
Community Advisor
April 23, 2024

hi @snjkhandelwal2 ,

 

Can you try below value for jsProcessor property at your clientlib level.

   
jsProcessor="[min:gcc;languageIn=ECMASCRIPT_2016;languageOut=ECMASCRIPT_2016;compilationLevel=simple;obfuscate=true]"