Skip to content

Commit 051a566

Browse files
authored
docs(concepts) Clarification about NODE_ENV and mode (#1885)
1 parent c1318e1 commit 051a566

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/content/concepts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ T> You can configure the `entry` property in various ways depending the needs of
4949

5050
## Output
5151

52-
The **output** property tells webpack where to emit the *bundles* it creates and how to name these files and defaults to `./dist`. You can configure this part of the process by specifying an `output` field in your configuration:
52+
The **output** property tells webpack where to emit the *bundles* it creates and how to name these files, it defaults to `./dist`. You can configure this part of the process by specifying an `output` field in your configuration:
5353

5454
__webpack.config.js__
5555

@@ -159,4 +159,4 @@ module.exports = {
159159
};
160160
```
161161

162-
[Learn more!](/concepts/mode)
162+
[Learn more!](/concepts/mode)

src/content/concepts/mode.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = {
1919
};
2020
```
2121

22-
23-
or pass it as a cli argument:
22+
23+
or pass it as a [CLI](/api/cli/) argument:
2424

2525
```bash
2626
webpack --mode=production
@@ -33,6 +33,8 @@ Option | Description
3333
`development` | Provides `process.env.NODE_ENV` with value `development`. Enables `NamedModulesPlugin`.
3434
`production` | Provides `process.env.NODE_ENV` with value `production`. Enables `UglifyJsPlugin`, `ModuleConcatenationPlugin` and `NoEmitOnErrorsPlugin`.
3535

36+
T> Please remember that setting `NODE_ENV` doesn't automatically set `mode`.
37+
3638

3739
### Mode: development
3840

0 commit comments

Comments
 (0)