Webpack vs Clientlibs - internals of how clientlib works | Community
Skip to main content
pmminov
New Participant
July 21, 2016
Solved

Webpack vs Clientlibs - internals of how clientlib works

  • July 21, 2016
  • 2 replies
  • 1766 views

Hi,

My frontend team is NOT eager on using clientlibs. They want to work with their more casual and fast approach of using Webpack. I am not very clear on its working, but basically you can develop css and js on a modular basis and webpack will return you a nice big JS/CSS file with all optimizations ran in it. They also like the fact they can use SASS with Webpack.

I would like to stick to using clientlibs, which pretty much can do the same (group components css/js files and deploy one big minified clientlib). But I can't really come up with a good reason to back it up.

The information on clientlibs is limitied to a one html document, could someone share a bit more technical details of how all the client lib happens? What libraries are involved in the process? Has anyone been posed with the same question of tossing clientlibs in favor of a big massive compiled/optimized JS/CSS File?

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 kautuk_sahni

Hi 

Please have a look at this community article, this talks about :

1.multiple components with their own Javascript and CSS files

2. global Javascript and CSS files

So here, you can learn to create a component specific javascripts/css and global javascripts/css.

Link:- http://blogs.adobe.com/experiencedelivers/experience-management/clientlibs-explained-example/

Read the above article to learn step by step approach to create a component specific JS.

I hope this would help you a bit

~kautuk

2 replies

smacdonald2008
New Participant
July 29, 2016

Adding to what Kautuk said - ClientLibs are best practice to use when workign with AEM. See:

http://www.icidigital.com/blog/best-approaches-to-client-libraries-in-adobe-cq5-part-1/

I have not heard of using Webpacks with AEM. I recommend using best practice and use Clientlibs. 

Hope this helps

kautuk_sahni
kautuk_sahniAccepted solution
Employee
July 29, 2016

Hi 

Please have a look at this community article, this talks about :

1.multiple components with their own Javascript and CSS files

2. global Javascript and CSS files

So here, you can learn to create a component specific javascripts/css and global javascripts/css.

Link:- http://blogs.adobe.com/experiencedelivers/experience-management/clientlibs-explained-example/

Read the above article to learn step by step approach to create a component specific JS.

I hope this would help you a bit

~kautuk

Kautuk Sahni