Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

ClientLibs Minification specific to a project

Avatar

Level 2

Is it possible to enable clientLibs minification for only one project in an AEM instance where there are multiple projects?

For eg: In an AEM instance there are multiple projects like:

  1. /apps/<division1>/<subdivision1>/<project1>, 
  2. /apps/<division1>/<subdivision1>/<project2>, 
  3. /apps/<division1>/<subdivision1>/<project1>,
  4. /apps/<division1>/<subdivision2>/<project1>
  5. /apps/<division2>/<subdivision1>/<project1>

If we enable minification in the Felix console config manager, it will be applicable for all the projects. In the above case is it possible to enable minification only for 

  1. /apps/<division1>/<subdivision1>/<project1>
1 Accepted Solution

Avatar

Correct answer by
Level 10

Viv S wrote...

is it possible to enable minification only for 
  1. /apps/<division1>/<subdivision1>/<project1>

 

The component where you are including the client library add a selector ".min" & will get minified.

View solution in original post

4 Replies

Avatar

Level 10

You minifya clientlib using the option discussed here: 

http://aem.matelli.org/client-library-configuration-minify-and-debug/

Once that is set - its applicable to all projects. 

Avatar

Correct answer by
Level 10

Viv S wrote...

is it possible to enable minification only for 
  1. /apps/<division1>/<subdivision1>/<project1>

 

The component where you are including the client library add a selector ".min" & will get minified.

Avatar

Level 2

Sham HC wrote...

Viv S wrote...

is it possible to enable minification only for 
  1. /apps/<division1>/<subdivision1>/<project1>

 

The component where you are including the client library add a selector ".min" & will get minified.

 

We are including the client library using the <cq:includeClientLib> tag. It looks something like this:

<cq:includeClientLib categories="sample.clientlibs"/> 

Where should we add the .min selector here?

Avatar

Administrator

Adding to Sham's comment, 

Please have a look at the blog Sham posted earlier:

Link:- http://aemfaq.blogspot.in/2013/05/whats-new-in-aem-html-library-manager.html

 

Also look at this old forum post:-

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

//Is there a way to disable JS minification for a particular clientlib or JS file?

   

Excellent answer Sham "The component where you are including the client library add a selector ".min" & will get minified."

~kautuk



Kautuk Sahni