The below question assumes you have deployed a custom widget, and ran npm ci, npm fund, and npm start on the client followed by server folders in Deleper Edition. Suppose you update a file within the widget, such as widget.tsx, do you need to run any npm commands on the client and/or server folder? Will refreshing the Developer Edition builder app window work? Mostly asking as it can take 5-10 minutes to run through the commands for both the client and server folders.
Solved! Go to Solution.
As long as npm is running it should be listening for changes. So generally, refreshing the browser running ExB Dev will reflect changes to custom widgets. Although, I have had occasions that required restarting npm completely.
As long as npm is running it should be listening for changes. So generally, refreshing the browser running ExB Dev will reflect changes to custom widgets. Although, I have had occasions that required restarting npm completely.
Before directly answering your question, I think it would be helpful to explain what those commands you ran do.
When you are in an Experience Builder session (between npm start and Ctrl+C), one of those third party software packages called Webpack will watch for anytime you save a file in the your-extensions folder (If you are changing anything in any other folder, you are doing something wrong.) and automatically re-build and re-start your client server. All you will need to do is refresh your browser to see the changes. If you add a new folder, you may need to stop and restart your client folder to see that change.