Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #261 from redwoodjs/dsp-update-cli-dev-server-forward
Browse files Browse the repository at this point in the history
Add `yarn rw dev --forward` option
  • Loading branch information
thedavidprice committed Jul 30, 2020
2 parents 0dd8f7a + 144962c commit 23f0524
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/cliCommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ yarn redwood dev [side..]

`yarn rw dev api` starts the Redwood dev server and `yarn rw dev web` starts the Webpack dev server with Redwood's config.

| Argument | Description |
| :------- | :-------------------------------------------------------------------------------------- |
| `side` | Which dev server(s) to start. Choices are `api` and `web`. Defaults to `api` and `web` |
| Argument | Description |
| :-------- | :-------------------------------------------------------------------------------------- |
| `side` | Which dev server(s) to start. Choices are `api` and `web`. Defaults to `api` and `web` |
| `--forward, --fwd` | String of one or more [Webpack DevServer](https://webpack.js.org/configuration/dev-server/) config options. See example usage below. |

**Usage**

Expand All @@ -303,6 +304,12 @@ $ /redwood-app/node_modules/.bin/dev-server
15:04:51 api | ► http://localhost:8911/graphql/
```

Using `--forward` (alias `--fwd`), you can pass one or more Webpack DevServer config options. The following will run the dev server, set the port to `1234`, and disable automatic browser opening.

```plaintext{10}
~/redwood-app$ yarn rw dev --fwd="--port=1234 --open=false"
```

## destroy (alias d)

Rollback changes made by the generate command.
Expand Down

0 comments on commit 23f0524

Please sign in to comment.