Skip to content

Commit

Permalink
Clientlib dependencies (#458)
Browse files Browse the repository at this point in the history
Add clientlib-dependencies to clientlib.config.js to align w archetype
  • Loading branch information
davidjgonzalez authored Jun 13, 2024
1 parent 78a5374 commit 01f45d9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
allowProxy="{Boolean}true"
categories="[wknd.dependencies]"
embed="[granite.csrf.standalone]"/>
embed="[granite.csrf.standalone]"
cssProcessor="[default:none,min:none]"
jsProcessor="[default:none,min:none]"
allowProxy="{Boolean}true"/>

This file was deleted.

This file was deleted.

11 changes: 11 additions & 0 deletions ui.frontend/clientlib.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ module.exports = {
context: BUILD_DIR,
clientLibRoot: CLIENTLIB_DIR,
libs: [
/* These embeds and categories can added to clientlib-site below as well */
{
...libsBaseConfig,
name: 'clientlib-dependencies',
categories: ['wknd.dependencies'],
// Add AEM OOTB client libraries as needed
embed: ['granite.csrf.standalone'],
assets: {
// Add any CSS and JS entrypoint scripts and stylesheets into the dependencies clientlib
}
},
{
...libsBaseConfig,
name: 'clientlib-site',
Expand Down

0 comments on commit 01f45d9

Please sign in to comment.