April 11, 2020
Estimated Post Reading Time ~

Client Library Configuration: Minify and Debug

CQ Client Libraries (clientlibs) contain two configuration options that every developer should be aware of: minify and debug.

Steps:
Navigate to Tools
Navigate to OSGi Console
Search for and click on "Day CQ HTML Library Manager"


Minify:
Do not put any minified code into your clientlib codebase. Let AEM handle it automatically in non-development environments by clicking the “Minify” checkbox.

Debug:
Developers, check the “debug” option on your local instance. This will prevent the CQ clientlib files from being combined into one file and makes troubleshooting javascript and css issues significantly easier.

Warning: page layout and css may look a bit more “choppy” when initially loading.

Note: AEM may require being restarted to apply changes to these settings.

Summary:
CQ developers should no longer have to debug through minified, rolled-up client library code by taking advantage of useful configuration options.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.