How can I disable minification of dialog JS of AEM components | Adobe Higher Education
Skip to main content
Level 2
September 11, 2021
Répondu

How can I disable minification of dialog JS of AEM components

http://localhost:4502/system/console/configMgr/com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl

I have disabled minification of JS using above interface as posted in other threads, but component dialog JS with

category - cq.authoring.dialog , is still getting minified. Is there a way to stop minification of all component dialog JS?
Need to do it , as debugging becomes a lot tedious with minified JS.

Using AEM 6.5

* EDIT *

P.S : Component Dialog client libs used to come un-minified in AEM 6.4

Ce sujet a été fermé aux réponses.
Meilleure réponse par Kishore_Kumar_

Hi @sarthakuiit ,

 

Since cq.dialog.authoring.all have jsProcessor property set at the component level,

 

/libs/cq/gui/components/authoring/dialog/clientlibs/all

 

I asked to use custom category for your dialog clientlibs and call only that clientlibs using extraClientlibs property in your cq:dialog node. Your dialog script will be independently loaded and it will be easier for you to debug.

 

3 commentaires

Kishore_Kumar_
Level 9
September 11, 2021

Hi @sarthakuiit ,

 

It might have enabled at client library property level. Please check.

 

else if you want to check for any of the component dialogs please try using extraClientlibs (to load only your dialog specific clientlibs) property and then try to debug your issue.

Level 2
September 13, 2021

Hi , 

You mean to say adding this snippet :

categories="[extraClientlibs]"
to .content.xml of the component?

Kishore_Kumar_
Level 9
September 13, 2021

Hi @sarthakuiit ,

 

Since cq.dialog.authoring.all have jsProcessor property set at the component level,

 

/libs/cq/gui/components/authoring/dialog/clientlibs/all

 

I asked to use custom category for your dialog clientlibs and call only that clientlibs using extraClientlibs property in your cq:dialog node. Your dialog script will be independently loaded and it will be easier for you to debug.

 

Ravi_Pampana
Community Advisor
Community Advisor
September 11, 2021

Hi,

 

You can add below value for cssProcessor/jssProcessor property at cq:ClientLibraryFolder to stop minification of clientlibs

 

 Also, if you add ?debugClientLibs=true parameter to the url then clientlibs will load as individual files instead of minified/combined files, which can be used for debugging.

 

 

Level 2
September 13, 2021

Hi , 
I tried both the options, but it is not working in case of component dialog JS. (though it works for component JS) 

I am adding the jsProcessor property on path - /apps/<pckg>/components/content/<site>/<component-name>/clientlibs-dialog
Anything different I need to do?

Manu_Mathew_
Community Advisor
Community Advisor
September 12, 2021