55 <div><sup><em>(for webpack)</em></sup></div>
66 </h1 >
77
8- <a href =" https://travis-ci.org/stephencookdev/speed-measure-webpack-plugin " ><img src =" https://travis-ci.org/stephencookdev/speed-measure-webpack-plugin.svg?branch=master " /></a >
9- <a href =" https://npmjs.com/package/speed-measure-webpack-plugin " ><img src =" https://img.shields.io/npm/dw/speed-measure-webpack-plugin.svg " /></a >
10- <a href =" https://npmjs.com/package/speed-measure-webpack-plugin " ><img src =" https://img.shields.io/node/v/speed-measure-webpack-plugin.svg " /></a >
11- <a href =" https://github.com/prettier/prettier " ><img src =" https://img.shields.io/badge/code_style-prettier-ff69b4.svg " /></a >
8+ <!-- ALL-CONTRIBUTORS-BADGE:START -->
9+ <a href =" https://travis-ci.org/stephencookdev/speed-measure-webpack-plugin " ><img src =" https://travis-ci.org/stephencookdev/speed-measure-webpack-plugin.svg?branch=master " /></a > <a href =" https://npmjs.com/package/speed-measure-webpack-plugin " ><img src =" https://img.shields.io/npm/dw/speed-measure-webpack-plugin.svg " /></a > <a href =" https://npmjs.com/package/speed-measure-webpack-plugin " ><img src =" https://img.shields.io/node/v/speed-measure-webpack-plugin.svg " /></a > <a href =" https://github.com/prettier/prettier " ><img src =" https://img.shields.io/badge/code_style-prettier-ff69b4.svg " /></a > <a href =" #contributors " ><img src =" https://img.shields.io/badge/all_contributors-8-orange.svg " /></a >
10+ <!-- ALL-CONTRIBUTORS-BADGE:END -->
1211
1312</div >
1413<br >
@@ -120,6 +119,20 @@ const webpackConfig = smp.wrap({
120119});
121120```
122121
122+ ### ` options.loaderTopFiles `
123+
124+ Type: ` Number ` <br >
125+ Default: ` 0 `
126+
127+ 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:
128+
129+ ``` javascript
130+ const smp = new SpeedMeasurePlugin ({
131+ outputFormat: " humanVerbose" ,
132+ loaderTopFiles: 10 ,
133+ });
134+ ```
135+
123136### ` options.compareLoadersBuild `
124137
125138Type: ` Object ` <br >
@@ -151,6 +164,16 @@ This flag is _experimental_. Some loaders will have inaccurate results:
151164
152165We will find solutions to these issues before removing the _ (experimental)_ flag on this option.
153166
167+ ## FAQ
168+
169+ ### What does general output time mean?
170+
171+ This tends to be down to webpack reading in from the file-system, but in general it's anything outside of what SMP can actually measure.
172+
173+ ### What does modules without loaders mean?
174+
175+ It means vanilla JS files, which webpack can handle out of the box.
176+
154177## Contributing
155178
156179Contributors are welcome! 😊
@@ -164,3 +187,32 @@ SMP follows [semver](https://semver.org/). If upgrading a major version, you can
164187## License
165188
166189[ MIT] ( /LICENSE )
190+
191+ ## Contributors ✨
192+
193+ Thanks goes to these wonderful people ([ emoji key] ( https://allcontributors.org/docs/en/emoji-key ) ):
194+
195+ <!-- ALL-CONTRIBUTORS-LIST:START -->
196+ <!-- prettier-ignore-start -->
197+ <!-- markdownlint-disable -->
198+ <table >
199+ <tr >
200+ <td align="center"><a href="https://stephencookdev.co.uk/"><img src="https://avatars.githubusercontent.com/u/8496655?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stephen Cook</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=stephencookdev" title="Code">💻</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=stephencookdev" title="Documentation">📖</a> <a href="#blog-stephencookdev" title="Blogposts">📝</a> <a href="#design-stephencookdev" title="Design">🎨</a> <a href="#question-stephencookdev" title="Answering Questions">💬</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/pulls?q=is%3Apr+reviewed-by%3Astephencookdev" title="Reviewed Pull Requests">👀</a></td>
201+ <td align="center"><a href="https://scarletsky.github.io/"><img src="https://avatars.githubusercontent.com/u/2386165?v=4?s=100" width="100px;" alt=""/><br /><sub><b>scarletsky</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=scarletsky" title="Code">💻</a></td>
202+ <td align="center"><a href="https://github.com/wayou"><img src="https://avatars.githubusercontent.com/u/3783096?v=4?s=100" width="100px;" alt=""/><br /><sub><b>牛さん</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=wayou" title="Code">💻</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/issues?q=author%3Awayou" title="Bug reports">🐛</a></td>
203+ <td align="center"><a href="https://github.com/ThomasHarper"><img src="https://avatars.githubusercontent.com/u/3199791?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Thomas Bentkowski</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=ThomasHarper" title="Documentation">📖</a></td>
204+ <td align="center"><a href="https://github.com/alan-agius4"><img src="https://avatars.githubusercontent.com/u/17563226?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Alan Agius</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=alan-agius4" title="Code">💻</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/issues?q=author%3Aalan-agius4" title="Bug reports">🐛</a></td>
205+ <td align="center"><a href="https://daix.me/"><img src="https://avatars.githubusercontent.com/u/1396511?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ximing</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=NdYAG" title="Code">💻</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/issues?q=author%3ANdYAG" title="Bug reports">🐛</a></td>
206+ <td align="center"><a href="https://twitter.com/lihautan"><img src="https://avatars.githubusercontent.com/u/2338632?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tan Li Hau</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=tanhauhau" title="Code">💻</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/issues?q=author%3Atanhauhau" title="Bug reports">🐛</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=tanhauhau" title="Tests">⚠️</a></td>
207+ </tr >
208+ <tr >
209+ <td align="center"><a href="https://github.com/ZauberNerd"><img src="https://avatars.githubusercontent.com/u/249542?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Björn Brauer</b></sub></a><br /><a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=ZauberNerd" title="Code">💻</a> <a href="https://github.com/stephencookdev/speed-measure-webpack-plugin/issues?q=author%3AZauberNerd" title="Bug reports">🐛</a></td>
210+ </tr >
211+ </table >
212+
213+ <!-- markdownlint-restore -->
214+ <!-- prettier-ignore-end -->
215+
216+ <!-- ALL-CONTRIBUTORS-LIST:END -->
217+
218+ This project follows the [ all-contributors] ( https://github.com/all-contributors/all-contributors ) specification. Contributions of any kind welcome!
0 commit comments