Solved! Go to Solution.
Views
Replies
Total Likes
Hello @ajeemaww9196509,
If you wish to serve static files from your AEM websites such as fonts and/or images (structural images like icons, background patterns, etc...), then you can:
@font-face {
font-family: "my-font";
src: url("/etc.clientlibs/my-site/clientlibs/clientlib-site/resources/myfont.woff") format("truetype");
}
If you wish to further understand how client libraries are created and all its features, be sure to check out these two blogs from sgaemsolutions:
I hope this helps.
As per adobe, it is recommended to locate client libraries under /apps and expose them via /etc.clientlibs by leveraging the allowProxy property.
We can add the fonts under resources folder and access them with full path by replacing /apps with /etc.clientlibs after adding allowProxy property to the clientlibs node
Refer: https://docs.adobe.com/content/help/en/experience-manager-65/developing/introduction/clientlibs.html for more details
Hello @ajeemaww9196509,
If you wish to serve static files from your AEM websites such as fonts and/or images (structural images like icons, background patterns, etc...), then you can:
@font-face {
font-family: "my-font";
src: url("/etc.clientlibs/my-site/clientlibs/clientlib-site/resources/myfont.woff") format("truetype");
}
If you wish to further understand how client libraries are created and all its features, be sure to check out these two blogs from sgaemsolutions:
I hope this helps.