Skip to content

Commit 5c94dab

Browse files
authored
docs(guides): Update environment-variables.md (#4159)
1 parent 51cb6bd commit 5c94dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/guides/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ T> webpack's environment variables are different from the [environment variables
2020
The webpack command line [environment option](/api/cli/#environment-options) `--env` allows you to pass in as many environment variables as you like. Environment variables will be made accessible in your `webpack.config.js`. For example, `--env production` or `--env NODE_ENV=local` (`NODE_ENV` is conventionally used to define the environment type, see [here](https://dzone.com/articles/what-you-should-know-about-node-env).)
2121

2222
```bash
23-
webpack --env NODE_ENV=local --env production --progress
23+
npx webpack --env NODE_ENV=local --env production --progress
2424
```
2525

2626
T> Setting up your `env` variable without assignment, `--env production` sets `env.production` to `true` by default. There are also other syntaxes that you can use. See the [webpack CLI](/api/cli/#environment-options) documentation for more information.

0 commit comments

Comments
 (0)