Versioned Clientlibs but only for css | Community
Skip to main content
Level 2
July 19, 2021
Solved

Versioned Clientlibs but only for css

  • July 19, 2021
  • 1 reply
  • 892 views

is it possible to add version numbers only to the compiled min.css file and not to the .min.js file through ACS-Commons

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Dipti_Chauhan

Hi @premib 

   Is there any specific reason to add version on CSS only?

 

Anyways I dont think you can do that with ACS common but definitely you can write your transformer which will only pick css. You can take reference from ACS common versioned-clientlibs : https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/VersionedClientlibsTransformerFactory.java

 

Thanks

Dipti Chauhan

1 reply

Dipti_Chauhan
Community Advisor
Dipti_ChauhanCommunity AdvisorAccepted solution
Community Advisor
July 19, 2021

Hi @premib 

   Is there any specific reason to add version on CSS only?

 

Anyways I dont think you can do that with ACS common but definitely you can write your transformer which will only pick css. You can take reference from ACS common versioned-clientlibs : https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/VersionedClientlibsTransformerFactory.java

 

Thanks

Dipti Chauhan