Skip to content

Commit 410a4c7

Browse files
authored
Document UI hot reload option in dev docs (#1834)
1 parent edf42f5 commit 410a4c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/source/docs/contributing/building-photon.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ In the root directory:
6969
``gradlew buildAndCopyUI``
7070
```
7171

72+
### Using hot reload on the UI
73+
74+
In the photon-client directory:
75+
76+
```bash
77+
npm run dev
78+
```
79+
80+
This allows you to make UI changes quickly without having to spend time rebuilding the jar. Hot reload is enabled, so changes that you make and save are reflected in the UI immediately. Running this command will give you the URL for accessing the UI, which is on a different port than normal. You must use the printed URL to use hot reload.
81+
7282
### Build and Run PhotonVision
7383

7484
To compile and run the project, issue the following command in the root directory:

0 commit comments

Comments
 (0)