This repository contains the compiled version of some Experience Builder widgets.
-
Using your terminal, go to the folder
arcgis-experience-builder/client/your-extension/widgets -
Run the following command:
npm run build:prod
-
The compiled version will be generated in
arcgis-experience-builder/client/dist-prod/widgets/exp-builder-widgets
The compiled version of the widget needs to be hosted on a web server as a static page. In this instance, I am using GitHub's "Pages".
- Upload the compiled code to the GitHub repo
- In the GitHib repo, go to "Settings" and then "Pages"
- Choose the branch and publish it as a page
- Note taht it takes about 10 minutes for the page to be activated
- On the portal, choose "Content" and then "New item"
- Choose "Application" and then "Experience builder widget"
- Enter the URL of the file manifest.json from the hosting service (GitHub Page)
- Choose a name for the widget and enter a description
- Share the widget to a group on the portal (or make it public)
- The widget is now available in Experience Builder on ArcGIS Entreprise portal
- Recompile the widget
- Push the changes to the repo