From c63ba380f673b7b80155461f616b605b904b25ce Mon Sep 17 00:00:00 2001 From: Grisanu Naing Date: Mon, 28 Aug 2017 11:11:11 -0700 Subject: [PATCH] docs(api): Add additional usage to --env webpack CLI docs --- src/content/api/cli.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/content/api/cli.md b/src/content/api/cli.md index a7059f99a850..0914aab08c54 100644 --- a/src/content/api/cli.md +++ b/src/content/api/cli.md @@ -130,16 +130,17 @@ webpack --env.platform=web # sets env.platform == "web" The `--env` argument accepts various syntaxes: -| Invocation | Resulting environment | -|-------------------------------|-----------------------------| -| webpack --env prod | `"prod"` | -| webpack --env.prod | `{ prod: true }` | -| webpack --env.prod=1 | `{ prod: 1 }` | -| webpack --env.prod=foo | `{ prod: "foo" }` | -| webpack --env.prod --env.min | `{ prod: true, min: true }` | -| webpack --env.prod --env min | `[{ prod: true }, "min"]` | - -T> See this [environment variables](/guides/environment-variables) guide for more information. +| Invocation | Resulting environment | +|----------------------------------------|-----------------------------| +| webpack --env prod | `"prod"` | +| webpack --env.prod | `{ prod: true }` | +| webpack --env.prod=1 | `{ prod: 1 }` | +| webpack --env.prod=foo | `{ prod: "foo" }` | +| webpack --env.prod --env.min | `{ prod: true, min: true }` | +| webpack --env.prod --env min | `[{ prod: true }, "min"]` | +| webpack --env.prod=foo --env.prod=bar | `{prod: [ "foo", "bar" ]}` | + +T> See this [environment variables](/guides/environment-variables) guide for more information on its usage. ### Output Options