Skip to content
On this page


Ensuring the type="module" attribute is set for ClientLibs is import for AEM Vite to work. AEM Vite provide an authorizable user (aem-vite-clientlibs) that you will need to apply via a rep:policy.

Access control

The first thing you will need to do is create a .content.xml file in your ClientLibs folder or the folder that you store your ClientLibs within. Add the following as its contents.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="" xmlns:nt="" xmlns:rep="internal"


The final step is to allow the AEM Vite aem-vite-clientlibs user access to any ClientLibs under AEM Vite control. Create a file called _rep_policy.xml in the same folder as where you stored your .content.xml file.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="" xmlns:rep="internal" jcr:primaryType="rep:ACL">

Apache 2.0 Licensed. Vite wording and logos are property of Evan You. Adobe and AEM wording and logos are property of Adobe Inc.