Skip to content

Commit 278854a

Browse files
jceipekEugeneHlushko
authored andcommitted
Adding minor getting started clarifications (#2798)
1 parent 668ec96 commit 278854a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/content/guides/environment-variables.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ contributors:
77
- tbroadley
88
- legalcodes
99
- byzyk
10+
- jceipek
1011
related:
1112
- title: The Fine Art of the webpack 3 Config
1213
url: https://blog.flennik.com/the-fine-art-of-the-webpack-2-config-dc4d19d7f172#d60a
1314
---
1415

1516
To disambiguate in your `webpack.config.js` between [development](/guides/development) and [production builds](/guides/production) you may use environment variables.
1617

18+
T> webpack's environment variables are different from the [environment variables](https://en.wikipedia.org/wiki/Environment_variable) of operating system shells like `bash` and `CMD.exe`
19+
1720
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).)
1821

1922
```bash

src/content/guides/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ npm install --save-dev webpack
3030
npm install --save-dev webpack@<version>
3131
```
3232

33-
If you're using webpack v4 or later, you'll need to install the [CLI](/api/cli/).
33+
If you're using webpack v4 or later, you'll also need to install the [CLI](/api/cli/).
3434

3535
``` bash
3636
npm install --save-dev webpack-cli

0 commit comments

Comments
 (0)