Sign in to Community
Sign in to view all badges
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.
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 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...
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.