We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
env
1 parent f9022fc commit a65a9beCopy full SHA for a65a9be
src/content/api/cli.mdx
@@ -574,6 +574,8 @@ The `--env` argument accepts multiple values:
574
| `npx webpack --env foo=bar=app` | `{ foo: "bar=app"}` |
575
| `npx webpack --env app.platform="staging" --env app.name="test"` | `{ app: { platform: "staging", name: "test" }` |
576
577
+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=\"\"`
578
+
579
T> See the [environment variables](/guides/environment-variables/) guide for more information on its usage.
580
581
In addition to the customized `env` showed above, there are some built-in ones under `env` to be used inside your webpack configuration:
0 commit comments