{"name":"speed-measure-webpack-plugin","version":"1.3.2","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"},"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"},"devDependencies":{"alex":"^7.0.0","husky":"^1.3.1","jest":"^22.4.2","lerna":"^2.9.0","lint-staged":"^8.1.0","prettier":"^1.15.3","write-good":"^0.11.3"},"dependencies":{"chalk":"^2.0.1"},"gitHead":"c5525884896cbfc1ff605372b539da917142e5f1","_id":"speed-measure-webpack-plugin@1.3.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"stephencookdev","email":"stephen@stephencookdev.co.uk"},"dist":{"integrity":"sha512-IFuSZITaqwHuTROxSdU3aPIsNHHp6bi5P3qp+iVHiESS3ve1sTcTAVwyEWRBaveLjnTOara+wh3VoX/P1zEQJQ==","shasum":"c2790f889b93bafb8d67d75a9bd26667e2d9bb42","tarball":"http://registry-npm.ywwl.com/speed-measure-webpack-plugin/download/speed-measure-webpack-plugin-1.3.2.tgz","fileCount":19,"unpackedSize":216669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed/vACRA9TVsSAnZWagAAuM8P/1SohajUY5/a1O13lBka\nowS0hCq7t17UcIGqmpe47x9hgcq4Aew+Fz0C7yFRDSMYypSx/p8qJ6e0uhGx\nJNzAbb7cOYUGupZirbp1PGCMOF48LfuUuatkERikCVXsDfrcX9OFRoZV87Kf\nlqhHugIit/Ruv87D4upwMrRSF8Hiu6orm/w9+L0uMd8a7F7COYZ34KWMGndW\n5PUerkfxMVmazcHt4WbMqo+l0Z80/6uHz+oSkLlhNC1fCjT3ryHAZ7TgVC+H\nCT2BmiJ8kVIux3NVokoNxHZ4U7X+wMkyr3KKtL8i04dXuiZ9xaJQpLH1Ymmn\ncK2t9sMlxUNrSFZXDIuGiP665mtmluxH1bcNZxqaF6DcX0bwCLE/8/bLzCVN\n0HcMG0hPUgEoU4pUJu4CX3gftRlW1nAqjKqXr3E5UNhh7B7gAEKksMEbZuv0\noHtMfGaxBp/X3FIwulrk3KdjZxyMnqIOMIMa5JjRILB5MKhrdBXBo7d7CqjO\n/yhhwY6AAeHyBk/dvlD9CP+hOJ45poQPFt33IHC2GlUxrcVhETuO31QNzcF3\nClKXTKP0xyUd1t/FjHTpJqUenQocsr7f6Cxyr+t8eiExBWTZcRhgibWS7Du8\nZ6onq5YlALiD3jzCC/BdONoit1QztMeHhEPKX5rbw+DxjMDQ/PX4l3oBq3R4\ntpKN\r\n=U0IA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDK1ioD41VyqA9ocgUs2oSuMvU9kJUrRSAdK7zHGerTBAiEA+DVxg/m8j443klf6XZvdu6XQ2B84Upewhd6ryVRa29g="}],"size":179645,"noattachment":false,"key":"/speed-measure-webpack-plugin/-/speed-measure-webpack-plugin-1.3.2.tgz"},"maintainers":[{"name":"stephencookdev","email":"stephen@stephencookdev.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/speed-measure-webpack-plugin_1.3.2_1584921536268_0.9713347980244476"},"_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":1584921536462,"_cnpm_publish_time":1584921536462,"dist-tags":{"beta":"1.0.0-beta-1","latest":"1.6.0"}}