clientlib include - does not gets added on page until we hit dumplibs.test.html
Hi all,
This is for AEM 6.1 . We are using Sightly. This is related to clientlib
We have 2 environments - Dev & Test. On Dev its not working and on Test its working fine.
We have created a custom clientLib. The category name for this clientLib is same as the category name for OOB clientLib. All we wanted was where ever the OOB clientLib was included then our custom clientLib should also get included.
In our sightly code we will have include for OOB category
<template data-sly-template.include="${@ categories='Client Library categories', mode='optional: JS or CSS, case-insensitve'}"
data-sly-use.clientlib="${'
${clientlib.include @ context='unsafe'}
</template>
And this will add OOB JS & my custom JS both on page.
<script type="text/javascript" src="/etc/clientlibs/granite/
<script type="text/javascript" src="/etc/myproject/
On my TEST environment its working fine and both the JS is getting included.
On my DEV environment only OOB JS is getting included.
But Now when I try the dumplibs URL
http://localhost:4502/libs/
Then it starts working and I can see my custom JS is getting included.
Trying to figure out what can be causing this issue ?