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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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
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
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.
Views
Replies
Total Likes
Minification of smaller clientlib also add on improvement on load.
If debugging is am concern, you can still choose an option to do minification towards publisher side in case if you do not need to minification in author.
Views
Replies
Total Likes
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
Views
Replies
Total Likes