From 63ce3feef92bbd1f63f3920516dba9c642e91da0 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Sun, 28 Mar 2021 06:03:49 +0530 Subject: [PATCH] docs(cli): add env var doc (#4773) * cli: add import local skip env doc * fix: docs --- src/content/api/cli.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/content/api/cli.md b/src/content/api/cli.md index dac4c21394a3..efdb0df7a8b5 100644 --- a/src/content/api/cli.md +++ b/src/content/api/cli.md @@ -521,11 +521,13 @@ NODE_OPTIONS="--max-old-space-size=4096 -r /path/to/preload/file.js" webpack ## Environment Variables -| 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. | +| Environment Variable | Description | Available in `env` | +| ------------------------------- | ------------------------------------------------------------------- | ------------------ | +| `WEBPACK_SERVE` | `true` if `serve\|s` is being used. | yes | +| `WEBPACK_BUILD` | `true` if `build\|bundle\|b` is being used. | yes | +| `WEBPACK_WATCH` | `true` if `--watch\|watch\|w` is being used. | yes | +| `WEBPACK_PACKAGE` | Use a custom webpack version in CLI | no | +| `WEBPACK_CLI_SKIP_IMPORT_LOCAL` | when `true` it will skip using the local instance of `webpack-cli`. | no | You can use the above environment variables inside your webpack configuration: