Update 02-local-development.md (#232)

* Update 02-local-development.md

When pull request #1517 was merged to lemmy-ui, which I have a link to [here](d0dff77377), the dev command to run the local frontend was changed from `yarn start` to `yarn build:dev --watch`. This updates the documents to reflect that.

* Update 02-local-development.md

This is a better shorthand for the command, it does the same thing but is shorter.
This commit is contained in:
TheSaneWriter 2023-06-26 07:26:13 -04:00 committed by GitHub
parent f436982690
commit 892abc1ef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ After making changes, you need to format the code with `cargo +nightly fmt --all
### Frontend development ### Frontend development
Install dependencies by running `yarn`. Then run `yarn start` to launch lemmy-ui locally. It automatically connects to the Lemmy backend on `localhost:8536`. Open [localhost:1234](http://localhost:1234) in your browser. The project is rebuilt automatically when you change any files. Install dependencies by running `yarn`. Then run `yarn dev` to launch lemmy-ui locally. It automatically connects to the Lemmy backend on `localhost:8536`. Open [localhost:1234](http://localhost:1234) in your browser. The project is rebuilt automatically when you change any files.
Note that this setup doesn't support image uploads. If you want to test those, you need to use the Note that this setup doesn't support image uploads. If you want to test those, you need to use the
[Docker development](03-docker-development.md). [Docker development](03-docker-development.md).