Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Now go to https://openmrs-spa.org/openmrs/spa/login
  2. Open the browser console
  3. localStorage.setItem('openmrs:devtools', true)

  4. Refresh the page. You will now see a floating colored rectangle on the screen. Click on it. A panel will open up
  5. In the Import Map tab, click on the frontend module that you are working on.
  6. Modify the URL to be 8080. This will make it so the javascript bundle is loaded from https://localhost:8080/root-config.js instead of the CDN.
  7. Refresh the page.
  8. Verify that root-config.js is being downloaded from localhost now. You can do this in the Network tab of the browser dev tools.
  9. Congrats! You're all set up. Try adding a console.log() statement inside of a file and saving the file. Your web browser will refresh and you should see the console.log inside of the browser console.

...