forked from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Oct 9, 2024
1 parent
3f801dc
commit f512e9b
Showing
3 changed files
with
27 additions
and
1 deletion.
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