...
https://gis.stackexchange.com/questions/246253/refreshing-web-appbuilder-widget-during-development
Publishing
First, you cannot publish custom widgets back to the WAB built into Enterprise/Portal, as per this: https://community.esri.com/thread/121410
You can publish apps which use custom widgets and themes by following these steps:
There are also instructions included in your new custom app in the ./readme.html document.
Adding a custom widget to portal
Custom widgets can be added as content items to an ArcGIS Enterprise Portal. See the following:
https://enterprise.arcgis.com/en/portal/latest/use/add-custom-widgets.htm
Azure storage static sites
These applications can be hosted in Azure Storage Accounts using the static site feature.
Update env.js to supply an apiUrl, as a local relative path is assumed
apiUrl = "https://js.arcgis.com/3.29",
Create a static site by following this documentation:
Use Microsoft Azure Storage Explorer to copy your app
From …\WebAppBuilderForArcGIS\server\apps
To $web
Follow the remaining steps to
Add the app as content and register the web app
Version Control
- Determine how to integrate with version control
Continuous Integration
Since the AppID needs to be registered we can’t reuse the same app on multiple platforms. Once an app has been added and registered we can update the source to keep it up to date. Pipelines that write that blob storage should be easily configured.