{"name":"speed-measure-webpack-plugin","version":"1.5.0","description":"Measure + analyse the speed of your webpack loaders and plugins","main":"index.js","scripts":{"test":"jest","functional-test":"lerna bootstrap && lerna run full-test","audit-fix":"npm audit fix && lerna run audit-fix --parallel","documentation-test":"alex ./*.md && write-good ./*.md","lint":"prettier --check \"*.{js,json,css,md}\"","fixlint":"prettier --write \"*.{js,json,css,md}\"","ac":"all-contributors"},"repository":{"type":"git","url":"git+https://github.com/stephencookdev/speed-measure-webpack-plugin.git"},"author":{"name":"Stephen Cook","email":"stephen@stephencookdev.co.uk"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,json,css,md}":["prettier --write","git add"]},"license":"MIT","bugs":{"url":"https://github.com/stephencookdev/speed-measure-webpack-plugin/issues"},"homepage":"https://github.com/stephencookdev/speed-measure-webpack-plugin#readme","engines":{"node":">=6.0.0"},"peerDependencies":{"webpack":"^1 || ^2 || ^3 || ^4 || ^5"},"devDependencies":{"alex":"^9.1.0","all-contributors-cli":"^6.19.0","husky":"^4.2.3","jest":"^26.6.3","lerna":"^3.22.1","lint-staged":"^10.0.8","prettier":"^2.2.1","write-good":"^1.0.2"},"dependencies":{"chalk":"^4.1.0"},"gitHead":"d6a0b69d2cf75b0ea85c9a3fe5622d10bb1e9781","_id":"speed-measure-webpack-plugin@1.5.0","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-Re0wX5CtM6gW7bZA64ONOfEPEhwbiSF/vz6e2GvadjuaPrQcHTQdRGsD8+BE7iUOysXH8tIenkPCQBEcspXsNg==","shasum":"caf2c5bee24ab66c1c7c30e8daa7910497f7681a","tarball":"http://registry-npm.ywwl.com/speed-measure-webpack-plugin/download/speed-measure-webpack-plugin-1.5.0.tgz","fileCount":21,"unpackedSize":246829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYJf6CRA9TVsSAnZWagAAooMP/1FsugFF83dFmMkzl2RS\n6Nqu74JlCv5pROqgoqMF06bLxhWzensQNNUMzLyzy8lXgOKnqd9+1S5AXkra\ndC7dnGIBbcfKwU0oYYo3Ky45JeZO6Thqj+4VUf1wPoxgs2/3JxoPfWMZH0nr\n1h3f8/N/rzjrx9hgKc7PGtdP4oSP2Xx5dq2RRcdWUQTIIZ46Eiv/6kYTFLIi\nZbyge74EeVIEGYi/L/GpI/DF9Xo79X1ieC8SVHHjWdlwdekdddUMdqBJKEp7\nyoCvQeFO4T82iJ8nLPTWdjxE+NCtC0gS+T7oCpn7DZbGjOoS81G28MlNxrIP\nq07XKOKAVlaU8KzVSjLZQSY8KesiWl71qKpyxGlCWBGES32faHvEzAH3GxOY\nDxtftDLBY4lC4lEHMsdaw6goedBCvJitMkFLWKe2HUhY9kPbJhdo7R/ora4E\nyX1NMo54fPLam/M2b1duw+bVUY03hfyFo7f1lBkNKeKtXfS1TkAHz8gYiwIj\ngYVj1c6vAFJnG6F7IL3TIChEP+H1XzQJGFaFzPPKaerPcroJ2zFhVUallhQq\nesqmj9B6wYURqZ+RIQQM1c3/6eUfWpu/3NelRVAmGKYZpJADnuMZiBef4LCm\nKkvWMixNA0z6A9krVmX9VjLeUcnz1971oaSl41a4to1tAmxHN9EXGogjJ+pG\nktXJ\r\n=kcQM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAM76iPkMZm9WXyTPHc0aH88B8qwcZsdDjdb4trz8aneAiAnoHiSumdWDbaxZnXuHFb16eG+AL6lKU2zsOFMf5Mx9Q=="}],"size":183115,"noattachment":false,"key":"/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.5.0.tgz"},"_npmUser":{"name":"stephencookdev","email":"stephen@stephencookdev.co.uk"},"directories":{},"maintainers":[{"name":"stephencookdev","email":"stephen@stephencookdev.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/speed-measure-webpack-plugin_1.5.0_1616943097556_0.0631363053623466"},"_hasShrinkwrap":false,"readme":"<div align=\"center\">\n  <img width=\"120\" height=\"120\" src=\"https://rawgit.com/stephencookdev/speed-measure-webpack-plugin/master/logo.svg\" />\n  <h1>\n    Speed Measure Plugin\n    <div><sup><em>(for webpack)</em></sup></div>\n  </h1>\n\n<!-- ALL-CONTRIBUTORS-BADGE:START -->\n\n<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-10-orange.svg\" /></a>\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n</div>\n<br>\n\nThe first step to optimising your webpack build speed, is to know where to focus your attention.\n\nThis plugin measures your webpack build speed, giving an output like this:\n\n![Preview of Speed Measure Plugin's output](preview.png)\n\n## Install\n\n```bash\nnpm install --save-dev speed-measure-webpack-plugin\n```\n\nor\n\n```bash\nyarn add -D speed-measure-webpack-plugin\n```\n\n## Requirements\n\nSMP requires at least **Node v6**. But otherwise, accepts **all webpack** versions (1, 2, 3, and 4).\n\n## Usage\n\nChange your webpack config from\n\n```javascript\nconst webpackConfig = {\n  plugins: [new MyPlugin(), new MyOtherPlugin()],\n};\n```\n\nto\n\n```javascript\nconst SpeedMeasurePlugin = require(\"speed-measure-webpack-plugin\");\n\nconst smp = new SpeedMeasurePlugin();\n\nconst webpackConfig = smp.wrap({\n  plugins: [new MyPlugin(), new MyOtherPlugin()],\n});\n```\n\nand you're done! SMP will now be printing timing output to the console by default.\n\nCheck out the [examples folder](/examples) for some more examples.\n\n## Options\n\nPass these into the constructor, as an object:\n\n```javascript\nconst smp = new SpeedMeasurePlugin(options);\n```\n\n### `options.disable`\n\nType: `Boolean`<br>\nDefault: `false`\n\nIf truthy, this plugin does nothing at all.\n\n`{ disable: !process.env.MEASURE }` allows opt-in measurements with `MEASURE=true npm run build`.\n\n### `options.outputFormat`\n\nType: `String|Function`<br>\nDefault: `\"human\"`\n\nDetermines in what format this plugin prints its measurements\n\n- `\"json\"` - produces a JSON blob\n- `\"human\"` - produces a human readable output\n- `\"humanVerbose\"` - produces a more verbose version of the human readable output\n- If a function, it will call the function with the JSON blob, and output the response\n\n### `options.outputTarget`\n\nType: `String|Function`<br>\nDefault: `console.log`\n\n- If a string, it specifies the path to a file to output to.\n- If a function, it will call the function with the output as the first parameter\n\n### `options.pluginNames`\n\nType: `Object`<br>\nDefault: `{}`\n\nBy default, SMP derives plugin names through `plugin.constructor.name`. For some\nplugins this doesn't work (or you may want to override this default). This option\ntakes an object of `pluginName: PluginConstructor`, e.g.\n\n```javascript\nconst uglify = new UglifyJSPlugin();\nconst smp = new SpeedMeasurePlugin({\n  pluginNames: {\n    customUglifyName: uglify,\n  },\n});\n\nconst webpackConfig = smp.wrap({\n  plugins: [uglify],\n});\n```\n\n### `options.loaderTopFiles`\n\nType: `Number`<br>\nDefault: `0`\n\nYou 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:\n\n```javascript\nconst smp = new SpeedMeasurePlugin({\n  outputFormat: \"humanVerbose\",\n  loaderTopFiles: 10,\n});\n```\n\n### `options.compareLoadersBuild`\n\nType: `Object`<br>\nDefault: `{}`\n\nThis option gives you a comparison over time of the module count and time spent, per loader. This option provides more data when `outputFormat: \"humanVerbose\"`.\n\nGiven a required `filePath` to store the build information, this option allows you to compare differences to your codebase over time. E.g.\n\n```javascript\nconst smp = new SpeedMeasurePlugin({\n  compareLoadersBuild: {\n    filePath: \"./buildInfo.json\",\n  },\n});\n```\n\n### `options.granularLoaderData` _(experimental)_\n\nType: `Boolean`<br>\nDefault: `false`\n\nBy default, SMP measures loaders in groups. If truthy, this plugin will give per-loader timing information.\n\nThis flag is _experimental_. Some loaders will have inaccurate results:\n\n- loaders using separate processes (e.g. `thread-loader`)\n- loaders emitting file output (e.g. `file-loader`)\n\nWe will find solutions to these issues before removing the _(experimental)_ flag on this option.\n\n## FAQ\n\n### What does general output time mean?\n\nThis 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.\n\n### What does modules without loaders mean?\n\nIt means vanilla JS files, which webpack can handle out of the box.\n\n## Contributing\n\nContributors are welcome! 😊\n\nPlease check out the [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## Migrating\n\nSMP follows [semver](https://semver.org/). If upgrading a major version, you can consult [the migration guide](./migration.md).\n\n## License\n\n[MIT](/LICENSE)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <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>\n    <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>\n    <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>\n    <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>\n    <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>\n    <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>\n    <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>\n  </tr>\n  <tr>\n    <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>\n    <td align=\"center\"><a href=\"https://github.com/The-Only-Matrix\"><img src=\"https://avatars.githubusercontent.com/u/61681157?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Suraj Patel</b></sub></a><br /><a href=\"https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=The-Only-Matrix\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/hanzooo\"><img src=\"https://avatars.githubusercontent.com/u/16368939?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jm</b></sub></a><br /><a href=\"https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=hanzooo\" title=\"Code\">💻</a> <a href=\"https://github.com/stephencookdev/speed-measure-webpack-plugin/issues?q=author%3Ahanzooo\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/stephencookdev/speed-measure-webpack-plugin/commits?author=hanzooo\" title=\"Tests\">⚠️</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","publish_time":1616943097782,"_cnpm_publish_time":1616943097782,"dist-tags":{"beta":"1.0.0-beta-1","latest":"1.6.0"}}