Skip to content

Commit 878b655

Browse files
erasermengstephencookdev
authored andcommitted
docs: add loaderTopFiles.
1 parent 00f4c81 commit 878b655

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,25 @@ const webpackConfig = smp.wrap({
127127
});
128128
```
129129

130+
### `options.loaderTopFiles`
131+
132+
Type: `Number`<br>
133+
Default: 0
134+
135+
`loaderTopFiles` is used with `outputFormat: 'humanVerbose'`:
136+
137+
```
138+
const smp = new SpeedMeasurePlugin({
139+
outputFormat: 'humanVerbose',
140+
loaderTopFiles: 10
141+
});
142+
```
143+
144+
you can clearly see the most cost-effective loader files:
145+
146+
![cost-effective-loader](cost-effective-loader.png)
147+
148+
130149
### `options.granularLoaderData` _(experimental)_
131150

132151
Type: `Boolean`<br>

cost-effective-loader.png

73.7 KB
Loading

0 commit comments

Comments
 (0)