Skip to content

Commit 3e4069c

Browse files
authored
docs: replace bullet points with defaults table for chunkIds and moduleIds (#8061)
1 parent 7072daa commit 3e4069c

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

src/content/configuration/optimization.mdx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@ export default {
4545

4646
Tells webpack which algorithm to use when choosing chunk ids. Setting `optimization.chunkIds` to `false` tells webpack that none of built-in algorithms should be used, as custom one can be provided via plugin. There are a couple of defaults for `optimization.chunkIds`:
4747

48-
- Also if the environment is development then `optimization.chunkIds` is set to `'named'`, while in production it is set to `'deterministic'`
49-
- if none of the above, `optimization.chunkIds` will be defaulted to `'natural'`
48+
The default value of `optimization.chunkIds` depends on the [`mode`](/configuration/mode/):
49+
50+
| Mode | Default |
51+
| ------------- | ----------------- |
52+
| `development` | `'named'` |
53+
| `production` | `'deterministic'` |
54+
| `none` | `'natural'` |
5055

5156
The following string values are supported:
5257

@@ -345,6 +350,14 @@ Basically, `'...'` is [a shortcut to access the default configuration value](htt
345350

346351
Tells webpack which algorithm to use when choosing module ids. Setting `optimization.moduleIds` to `false` tells webpack that none of built-in algorithms should be used, as custom one can be provided via plugin.
347352

353+
The default value of `optimization.moduleIds` depends on the [`mode`](/configuration/mode/):
354+
355+
| Mode | Default |
356+
| ------------- | ----------------- |
357+
| `development` | `'named'` |
358+
| `production` | `'deterministic'` |
359+
| `none` | `'natural'` |
360+
348361
The following string values are supported:
349362

350363
| Option | Description |

0 commit comments

Comments
 (0)