Skip to content

Commit 502488b

Browse files
Touch up the README slightly
1 parent 878b655 commit 502488b

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,17 @@ const webpackConfig = smp.wrap({
130130
### `options.loaderTopFiles`
131131

132132
Type: `Number`<br>
133-
Default: 0
133+
Default: `0`
134134

135-
`loaderTopFiles` is used with `outputFormat: 'humanVerbose'`:
135+
You can configure SMP to include the files that take the most time per loader, when using `outputFormat: 'humanVerbose'`. E.g., to show the top 10 files per loader:
136136

137-
```
137+
```javascript
138138
const smp = new SpeedMeasurePlugin({
139139
outputFormat: 'humanVerbose',
140140
loaderTopFiles: 10
141141
});
142142
```
143143

144-
you can clearly see the most cost-effective loader files:
145-
146-
![cost-effective-loader](cost-effective-loader.png)
147-
148144

149145
### `options.granularLoaderData` _(experimental)_
150146

cost-effective-loader.png

-73.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)