Socket
Socket
Sign inDemoInstall

speed-measure-webpack-plugin

Package Overview
Dependencies
298
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

9

package.json
{
"name": "speed-measure-webpack-plugin",
"version": "1.2.0",
"version": "1.2.1",
"description": "Measure + analyse the speed of your webpack loaders and plugins",

@@ -8,3 +8,4 @@ "main": "index.js",

"test": "jest",
"functional-test": "lerna bootstrap && lerna run prepare && lerna run test && lerna run cleanup"
"functional-test": "lerna bootstrap && lerna run prepare && lerna run test && lerna run cleanup",
"documentation-test": "alex ./README.md && write-good ./README.md"
},

@@ -31,5 +32,7 @@ "repository": {

"devDependencies": {
"alex": "^5.1.0",
"jest": "^22.4.2",
"lerna": "^2.9.0",
"prettier": "1.10.2"
"prettier": "1.10.2",
"write-good": "^0.11.3"
},

@@ -36,0 +39,0 @@ "dependencies": {

@@ -74,3 +74,3 @@ <div align="center">

Options are (optionally) passed in to the constructor
Pass these into the constructor, as an object:

@@ -86,4 +86,6 @@ ```javascript

If truthy, this plugin does nothing at all. It is recommended to set this with something similar to `{ disable: !process.env.MEASURE }` to allow opt-in measurements with a `MEASURE=true npm run build`
If truthy, this plugin does nothing at all.
`{ disable: !process.env.MEASURE }` allows opt-in measurements with `MEASURE=true npm run build`.
### `options.outputFormat`

@@ -99,3 +101,3 @@

* `"humanVerbose"` - produces a more verbose version of the human readable output
* If a function, it will call the function with the JSON blob being the first parameter, and just the response of the function as the output
* If a function, it will call the function with the JSON blob, and output the response

@@ -139,10 +141,10 @@ ### `options.outputTarget`

If truthy, this plugin will attempt to break down the loader timing data to give per-loader timing information.
By default, SMP measures loaders in groups. If truthy, this plugin will give per-loader timing information.
Points of note that the following loaders will have inaccurate results in this mode:
This flag is _experimental_. Some loaders will have inaccurate results:
* loaders using separate processes (e.g. `thread-loader`) - these make it difficult to get timing information on the subsequent loaders, as they're not attached to the main thread
* loaders emitting file output (e.g. `file-loader`) - the time taken in outputting the actual file is not included in the running time of the loader
* loaders using separate processes (e.g. `thread-loader`)
* loaders emitting file output (e.g. `file-loader`)
These are restrictions from technical limitations - ideally we would find solutions to these problems before removing the _(experimental)_ flag on this options
We will find solutions to these issues before removing the _(experimental)_ flag on this option.

@@ -149,0 +151,0 @@ ## License

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc