forked from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Satya Deep Maheshwari
committed
Nov 12, 2024
1 parent
1db4372
commit 925bfea
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// The based path of the aem-assets-plugin code. | ||
const codeBasePath = '/plugins/aem-assets-plugin'; | ||
|
||
// The blocks that are to be used from the aem-assets-plugin. | ||
const blocks = ['video']; | ||
|
||
// Initialize the aem-assets-plugin. | ||
export default async function assetsInit() { | ||
const { loadBlock, createOptimizedPicture } = await import(`${codeBasePath}/scripts/aem-assets.js`); | ||
window.hlx = window.hlx || {}; | ||
window.hlx.aemassets = { | ||
codeBasePath, | ||
blocks, | ||
loadBlock, | ||
createOptimizedPicture, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters