ui.frontend: Why are clientlib-dependencies and clientlib-sites ignored? | Community
Skip to main content
JonMaguire
Level 3
August 25, 2020
Solved

ui.frontend: Why are clientlib-dependencies and clientlib-sites ignored?

  • August 25, 2020
  • 2 replies
  • 2509 views

When using the ui.frontend project, why are clientlib-dependencies and clientlib-sites ignored in Git. Don't these folders and the code within them need to be part of version control?  

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 Nikhil-Kumar

@jonmaguire 

As per my understanding these clientlibs are created when code is built and deployed and it's content mostly varies on build.
It's something like Node Modules in react which is never committed in GIT and is a part of build of build process.

So, if this is the case I think there is any need to commit it as part of the code in Git.


Thanks,
Nikhil

2 replies

Nikhil-Kumar
Community Advisor
Nikhil-KumarCommunity AdvisorAccepted solution
Community Advisor
August 25, 2020

@jonmaguire 

As per my understanding these clientlibs are created when code is built and deployed and it's content mostly varies on build.
It's something like Node Modules in react which is never committed in GIT and is a part of build of build process.

So, if this is the case I think there is any need to commit it as part of the code in Git.


Thanks,
Nikhil

JonMaguire
Level 3
August 25, 2020
Thanks, that sort of makes sense on how it works, it being generated in the build, I'm just not sure of the reasoning behind it. For a follow-up question, do you happen to know if there is a way to turn off the minification of the css and js files generated through the ui.frontend process? This makes debugging through CRX easier in integration and QA author environments. I assume we would have to modify the webpack.prod.js or maybe another file to accomplish this?
Nikhil-Kumar
Community Advisor
Community Advisor
August 25, 2020

@jonmaguire 

Refer the below link of latest archetype where the clientlibs clientlib-dependencies and clientlib-site inside ui.frontend.general in clientlib.config.js file.
If you don't have ui.frontend.general then look inside ui.frontend.

https://github.com/adobe/aem-project-archetype/blob/master/src/main/archetype/ui.frontend.general/clientlib.config.js

I am not sure we can customize it's functionality or not.

Hope this helps!!


Thanks,
Nikhil