Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed May 1, 2021
1 parent 8e3b567 commit edc057d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/webpack-cli/README.md
Expand Up @@ -133,10 +133,14 @@ Checkout [`OPTIONS.md`](https://github.com/webpack/webpack-cli/blob/master/OPTIO
| `WEBPACK_PACKAGE` | Use a custom webpack version in CLI. |
| `WEBPACK_CLI_HELP_WIDTH` | Use custom width for help output. |

## Config Environment Variables
## Configuration Environment Variables

You can use the following environment variables inside your webpack configuration:

| Environment Variable | Description |
| -------------------- | -------------------------------------------- |
| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. |
| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. |
| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. |

Checkout [webpack.js.org](https://webpack.js.org/api/cli/) for more detailed documentation of `webpack-cli`.

0 comments on commit edc057d

Please sign in to comment.