I’ve scaffolded an application using the OpenMRS OWA Generator. I’ve built and deployed using the instructions here https://www.npmjs.com/package/generator-openmrs-owa#getting-started and I’m also watching the the project for changes using the watch command. But every time I make a change and reload the browser I don’t see any changes. I’d have to open a new window in incognito before I can see my changes. This takes a lot of time in my development as I’d have to close the current incognito window, open a new one, login, then navigate the OWA module then my app before I can see any changes.
I’m on macOS Sierra, I’ve tested this on both Google Chrome and Opera but I still get the same results.
Right now the live reload does not work completely even after starting a new incognito window. Even building and redeploying does not make show any changes in the browser.
Hi @ivange94,
1). On google chrome, please open the browser console then press and hold the refresh button, then select the Empty cache and hard reload option.
2). To use live reload ensure it is running on the port displayed on your npm run watch terminal and not the OpenMRS Tomcat server port it’s proxying with.
Clear cash and hard reloading works. Looks like I have to wait about 2 minutes before reloading. But I still can’t get the port displayed by npm to work. It loads for ever. Thanks.