This is a template example to use when building a solution for managing external components inside Sitecore's Content Hub. For more information please visit https://doc.sitecore.com/ch/en/developers/42/cloud-dev/integration-components--external-page-component--overview.html
npm install
npm run build --component=ComponentFolderName
npm run watch --component=ComponentFolderName
npm run dev --component=ComponentFolderName
- Go to page and create external component
- Edit the component select "From Path"
- Paste dev server url in box (E.g https://localhost:5173/dist/entitydetails.js)
- Save and navigate to the page with external component
- Wait for all the renditions to be processed. You can view their progress on your Background processes page.
- On the page where your external component is, click the name of the component.
- On the component detail page, under JS bundle, click From asset.
- In the drop-down list, click the name of your bundle asset.
- Click Save.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.