ClientLibs Minification specific to a project | Community
Skip to main content
vivs92490136
November 2, 2016
Solved

ClientLibs Minification specific to a project

  • November 2, 2016
  • 4 replies
  • 4355 views

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>
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 Sham_HC

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.

4 replies

smacdonald2008
November 2, 2016

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. 

Sham_HC
Sham_HCAccepted solution
November 2, 2016

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.

vivs92490136
November 3, 2016

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?

kautuk_sahni
Community Manager
Community Manager
November 3, 2016

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-manager.topic.html/forum__a4rq-the_yui_compressorc.html

//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