-
Hey, Firstly great library and I've enjoyed using it with some recent aem 6.5 upgrade work. Vite is a significant improvement to our development experience. I wanted to ask how you've managed to load clientlibs with I am using on prem AEM 6.3/6.5 and using versioned clientlibs to add a unique hash onto the clientlibs - running into this Adobe-Consulting-Services/acs-aem-commons#2560 due to transformers not liking scripts when its not My next idea is to add a custom transformer but wanted to check in and see if there was another way. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Ended up adding support for versioned clientlibs here Adobe-Consulting-Services/acs-aem-commons#2691 |
Beta Was this translation helpful? Give feedback.
-
Hi @jamesg1, Apologies for the very belated reply. As part of the installation process, there is a step to switch your current ClientLib HTL use attribute over to the AEM Vite ClientLib handler. https://www.aemvite.dev/guide/backend/installation/#configure-clientlibs Of course, this is not always optimal but you can copy the files from This should play nicely with Versioned ClientLibs as it executes before the rewriter. |
Beta Was this translation helpful? Give feedback.
Hi @jamesg1,
Apologies for the very belated reply. As part of the installation process, there is a step to switch your current ClientLib HTL use attribute over to the AEM Vite ClientLib handler.
https://www.aemvite.dev/guide/backend/installation/#configure-clientlibs
Of course, this is not always optimal but you can copy the files from
/apps/aem-vite/granite/sightly/templates
into your project folder and extend https://github.com/aem-vite/aem-vite/blob/main/core/src/main/java/dev/aemvite/aem/utilities/ClientLibUseObject.java.This should play nicely with Versioned ClientLibs as it executes before the rewriter.