From 269c57db866aa4fe14dbba2ba17caf50e8d2095e Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Fri, 10 Jun 2022 09:45:30 +0530 Subject: [PATCH] docs(api): add not about `env` usage --- src/content/api/cli.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/api/cli.mdx b/src/content/api/cli.mdx index a472684c4068..9b0dee7d5c26 100644 --- a/src/content/api/cli.mdx +++ b/src/content/api/cli.mdx @@ -574,6 +574,8 @@ The `--env` argument accepts multiple values: | `npx webpack --env foo=bar=app` | `{ foo: "bar=app"}` | | `npx webpack --env app.platform="staging" --env app.name="test"` | `{ app: { platform: "staging", name: "test" }` | +T> If you want to explicitly set a variable to empty string (`""`), you may need to escape characters on terminal like `npx webpack --env foo=\"\"` + T> See the [environment variables](/guides/environment-variables/) guide for more information on its usage. In addition to the customized `env` showed above, there are some built-in ones under `env` to be used inside your webpack configuration: