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

Can we minify individual Client side Libraries

Avatar

Avatar
Validate 1
Level 2
JakeCham
Level 2

Likes

6 likes

Total Posts

75 posts

Correct Reply

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

Avatar
Validate 1
Level 2
JakeCham
Level 2

Likes

6 likes

Total Posts

75 posts

Correct Reply

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

15-03-2021

Hi Team,

I'm trying to load a client library using a helper template provided by AEM.I want to minify this js/css.

When I go to /system/console/configMgr there is a option to minify all the clientlibs folders by using Library manager. But I want to do it for individual clientlibs folders.Is there any way to achieve this ?

 

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

644 likes

Total Posts

605 posts

Correct Reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

15-03-2021

Yes this is possible. For YUI COMPRESSOR FOR CSS MINIFICATION AND GCC FOR JS, refer to Adobe's own documentation, https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/clientlibs.html#UsingPreproces...

 

 
 

Answers (4)

Answers (4)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

389 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

389 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-03-2021

Yes, you can achieve that by Add the multivalue properties cssProcessor and jsProcessor on the clientlibrary node. See [1] for more details

 

[1] https://experienceleague.adobe.com/docs/experience-manager-65/developing/introduction/clientlibs.htm...

 

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct Reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct Reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

18-03-2021

Avatar

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

593 likes

Total Posts

705 posts

Correct Reply

206 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

593 likes

Total Posts

705 posts

Correct Reply

206 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile
asutosh_jena
Level 10

15-03-2021

Hi @JakeCham 

Using "Adobe Granite HTML Library Manager" config you will be able to minify all the CSS/JS files and can exclude the files which all are available under a specific path.
You can keep all the clientlibs which you do not want to minify under a specific path and add that path into "htmllibmanager.excluded.path.list" property so that it can be skipped during the minification.

On a separate note, it is always recommended to minify the CSS/JS files to improve the page performance and security.

https://experienceleague.adobe.com/docs/experience-manager-65/developing/introduction/clientlibs.htm...
http://www.sgaemsolutions.com/2017/07/adobe-granite-html-library-manager.html

Thanks!

Avatar

Avatar
Give Back 5
Level 6
Bhuwan_B
Level 6

Likes

132 likes

Total Posts

122 posts

Correct Reply

48 solutions
Top badges earned
Give Back 5
Boost 100
Give Back 3
Affirm 25
Establish
View profile

Avatar
Give Back 5
Level 6
Bhuwan_B
Level 6

Likes

132 likes

Total Posts

122 posts

Correct Reply

48 solutions
Top badges earned
Give Back 5
Boost 100
Give Back 3
Affirm 25
Establish
View profile
Bhuwan_B
Level 6

15-03-2021