Skip to content

Commit

Permalink
docs(cn): Correct a clerical error in optimization.mdx (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitten9533 authored Dec 10, 2023
1 parent 6fcae63 commit 40e1108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/configuration/optimization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ W> `moduleIds: total-size` 在 webpack 5 中被废弃。

`boolean = false` `string`

告知 webpack 将 `process.env.NODE_ENV` 设置为一个给定字符串。如果 `optimization.nodeEnv` 不是 `false`,则会使用 [DefinePlugin](/plugins/define-plugin/)`optimization.nodeEnv` **默认值**取决于 [mode](/concepts/mode/),如果为 falsy 值,则会回退到 `"production"`
告知 webpack 将 `process.env.NODE_ENV` 设置为一个给定字符串。如果 `optimization.nodeEnv` 不是 `false`,则会使用 [DefinePlugin](/plugins/define-plugin/)`optimization.nodeEnv` **默认值**取决于 [mode](/concepts/mode/),如果为 false 值,则会回退到 `"production"`

可能的值有:

Expand Down

0 comments on commit 40e1108

Please sign in to comment.