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

How to Minify Clientlib individually instead of checking the input in OSGI config

Avatar

Avatar
Validate 1
Level 2
VitthalaShiva
Level 2

Likes

5 likes

Total Posts

14 posts

Correct Reply

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

Avatar
Validate 1
Level 2
VitthalaShiva
Level 2

Likes

5 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
VitthalaShiva
Level 2

22-07-2020

I am having an issue with minifying a clientlibs. In our project I want to minify a clientlib and not willing to change the OSGI configuration.

 

Please help me if there is any way to minify Individual Clientlibs.

 

Thanks

ClientLibs osgi

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct Reply

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

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct Reply

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

22-07-2020

You can create a minified version of your libs outside of AEM and deploy it along with your project. 

Although, it will limit an ability to recompile libs at runtime

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct Reply

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

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Albin_Issac
MVP

22-07-2020

You can control the minification of individual client libraries, refer the following URL for more details - https://www.albinsblog.com/2019/04/how-to-disable-minification-for-client-libraries-in-aem.html#.Xxg...

 

Regards

Albin I

www.albinsblog.com

 

 

 

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

22-07-2020

Hi @VitthalaShiva , 

For better performance, minification of clientlib is better option to do. Am not sure why you are not willing to update the config. But I would suggest you to enable minification in osgi itself. 

 

If you still need to individually do minification of clientlib without osgi option, you need to use third party tools to minify the clientlib and add it in codebase or custom code to achieve the same. 

 

I would suggest you to enable the config in osgi which pretty straightforward and good option to go ahead.