Skip to content

Commit 63ce3fe

Browse files
authored
docs(cli): add env var doc (#4773)
* cli: add import local skip env doc * fix: docs
1 parent 6f2e9ff commit 63ce3fe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/content/api/cli.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,13 @@ NODE_OPTIONS="--max-old-space-size=4096 -r /path/to/preload/file.js" webpack
521521

522522
## Environment Variables
523523

524-
| Environment Variable | Description |
525-
| -------------------- | -------------------------------------------- |
526-
| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. |
527-
| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. |
528-
| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. |
524+
| Environment Variable | Description | Available in `env` |
525+
| ------------------------------- | ------------------------------------------------------------------- | ------------------ |
526+
| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. | yes |
527+
| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. | yes |
528+
| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. | yes |
529+
| `WEBPACK_PACKAGE` | Use a custom webpack version in CLI | no |
530+
| `WEBPACK_CLI_SKIP_IMPORT_LOCAL` | when `true` it will skip using the local instance of `webpack-cli`. | no |
529531

530532
You can use the above environment variables inside your webpack configuration:
531533

0 commit comments

Comments
 (0)