I went thru the Esri tutorial to make a demo widget, MyWidget. I tested it and it worked.
I moved it to the main widget directory and assigned it to a map. It worked.
I downloaded the map and installed the downloaded application on my gis web sever. It worked.
I then added a new function and tidied up the console messages in the widget.js file.
I downloaded the map but only the old widget.js file shows up. It's as if the changes were never made.
What am I doing wrong?