ClientLib minification issue | Adobe Higher Education
Skip to main content
Level 6
August 19, 2021

ClientLib minification issue

  • August 19, 2021
  • 2 Antworten
  • 2974 Ansichten

Hello Community - I see some issues with the clientLib minification in the JS. This is happening only for few of the clientLibs and for other clientLibs in the same project is working fine without any issues.

After enabling the debug logs, I found that there are some issues with minification for the spcecific clientlib failed with the error "with processor gcc for mode min rejected". Even though it failed with some errors for the minification, I am able to minify the JS using online utility(https://closure-compiler.appspot.com/home, https://javascript-minifier.com/) without any errors.

 

Error:

com.adobe.granite.ui.clientlibs.processor.gcc.impl.GCCScriptProcessor Processed /etc/designs/testapps/testClientlibs.js. 5 error(s), 0 warning(s)
13.08.2021 13:55:19.616 *DEBUG* [10.129.38.226 [1628880917365] GET /etc/designs/testapps/testClientlibs.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryBuilderImpl processing /etc/designs/testClientlibs/testClientlibs with processor gcc for mode min rejected.

Please let me know how can we identify and resolve the minification issues.

Dieses Thema wurde für Antworten geschlossen.

2 Antworten

arunpatidar
Community Advisor
Community Advisor
August 19, 2021
Level 6
August 19, 2021

@arunpatidar - Thanks for your reply. I have already followed the instructions in the provided link but no luck. is there a way to find out the errors during the minification process? It only shows the error count but not the error details.

arunpatidar
Community Advisor
Community Advisor
August 21, 2021

try with

min:gcc;obfuscate=true;languageIn=ECMASCRIPT_2015

Arun Patidar
Asutosh_Jena_
Community Advisor
Community Advisor
August 19, 2021

Hi @test1234567 

 

Did you try with the below option:

jsProcessor="[default:none,min:gcc;languageIn=ECMASCRIPT_2015;compilationLevel=whitespace]"

More information here:

http://www.shsteimer.com/2018/11/29/aem-clientlib-gcc-compiler-options/

 

Thanks! 

Level 6
August 19, 2021

@asutosh_jena_ - I just tried with the provided option as well but I still don't see the minificaion on the clientlib.

Asutosh_Jena_
Community Advisor
Community Advisor
August 19, 2021

Please try with the below:

jsProcessor="[min:yui]"