Skip to content

Commit 40bf91d

Browse files
sokraskipjack
authored andcommitted
docs(config): add parallelism option (#1509)
Add details for parallelism on the index and __Other Options__ page, with a note that profiling should be used.
1 parent 602d77d commit 40bf91d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

content/configuration/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ module.exports = {
390390
391391
[resolveLoader](/configuration/resolve#resolveloader): { /* same as resolve */ }
392392
// separate resolve options for loaders
393+
394+
[parallelism](other-options#parallelism): 1, // number
395+
// limit the number of parallel processed modules
393396
394397
[profile](other-options#profile): true, // boolean
395398
// capture timing information

content/configuration/other-options.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ Expose custom values into the loader context.
8484
?> Add an example...
8585

8686

87+
## `parallelism`
88+
89+
`number`
90+
91+
Limit the number of parallel processed modules. Can be used to fine tune performance or to get more reliable profiling results.
92+
93+
8794
## `profile`
8895

8996
`boolean`
@@ -92,6 +99,8 @@ Capture a "profile" of the application, including statistics and hints, which ca
9299

93100
T> Use the [StatsPlugin](https://www.npmjs.com/package/stats-webpack-plugin) for more control over the generated profile.
94101

102+
T> Combine with `parallelism: 1` for better results.
103+
95104

96105
## `recordsPath`
97106

0 commit comments

Comments
 (0)