Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.5.3 Publish - HTML Library Manager - Minify not working for Apps clientlibrary

Avatar

Avatar
Validate 1
Level 3
Eric_Stricker
Level 3

Likes

12 likes

Total Posts

73 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
Eric_Stricker
Level 3

Likes

12 likes

Total Posts

73 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
Eric_Stricker
Level 3

14-01-2020

As per best practices

 

We placed a clientlibs in the apps folder. Assigned the allowProxy={Boolean}true

Assigned a category = "testClientLib"

 

Edited a custom component in apps and added in the widget.jsp "<ui:includeClientLib categories="testClientLib" />"

 

On publish the js/css is loaded, but not minified when we set the flag in the "HTML Library Manager"

 

We do have another older category in etc/clientlibs and this js file is being 'minified' when the flag is set and not 'minified' when the flag is not set ==> ie. this is working as expected

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

104 likes

Total Posts

164 posts

Correct Reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

104 likes

Total Posts

164 posts

Correct Reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
sunjot16
Employee

15-01-2020

In addition to what @jbrar  suggested, you should also change your JS minification compiler from YUI to GCC.

 

The following docs may be helpful:

https://helpx.adobe.com/ca/experience-manager/6-4/sites/developing/using/clientlibs.html#UsingPrepro...

 

Answers (2)

Answers (2)

Avatar

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

90 likes

Total Posts

212 posts

Correct Reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

90 likes

Total Posts

212 posts

Correct Reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
antoniom5495929
Level 6

15-01-2020

Hi,

the clientlib it's available into the page? Or you get a 404?

Because it could be that your clientlib doesn't respect the YUI policy so you don't get the minified clientlibs.

 

Let us know.

 

Thanks,

Antonio

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

15-01-2020

I have seen this before where the minification is not working due to compilation errors. It might be due to the yui compiler for js. So, try using gcc for js

 

Also, For detailed analysis, follow the steps below:

- Setup a DEBUG logger on "com.adobe.granite.ui.clientlibs"

- Go to <host>:<port>/libs/granite/ui/content/dumplibs.rebuild.html

- Click on invalidate cache

- Now try to load the page where you are loading the custom clientlib and AEM should try to minify it.

- You should see details about why minification is failing in the DEBUG logger setup in the first step.