You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Determines in what format this plugin prints its measurements
92
87
93
-
*`"json"` - produces a JSON blob
94
-
*`"human"` - produces a human readable output
95
-
*`"humanVerbose"` - produces a more verbose version of the human readable output
96
-
* If a function, it will call the function with the JSON blob, and output the response
88
+
-`"json"` - produces a JSON blob
89
+
-`"human"` - produces a human readable output
90
+
-`"humanVerbose"` - produces a more verbose version of the human readable output
91
+
- If a function, it will call the function with the JSON blob, and output the response
97
92
98
93
### `options.outputTarget`
99
94
100
95
Type: `String|Function`<br>
101
96
Default: `console.log`
102
97
103
-
* If a string, it specifies the path to a file to output to.
104
-
* If a function, it will call the function with the output as the first parameter
98
+
- If a string, it specifies the path to a file to output to.
99
+
- If a function, it will call the function with the output as the first parameter
105
100
106
101
### `options.pluginNames`
107
102
@@ -116,14 +111,31 @@ takes an object of `pluginName: PluginConstructor`, e.g.
116
111
constuglify=newUglifyJSPlugin();
117
112
constsmp=newSpeedMeasurePlugin({
118
113
pluginNames: {
119
-
customUglifyName: uglify
120
-
}
114
+
customUglifyName: uglify,
115
+
},
121
116
});
122
117
123
118
constwebpackConfig=smp.wrap({
124
-
plugins: [
125
-
uglify
126
-
]
119
+
plugins: [uglify],
120
+
});
121
+
```
122
+
123
+
### `options.compareLoadersBuild`
124
+
125
+
Type: `Object`<br>
126
+
Default: `{}`
127
+
128
+
This option gives you per loader module count, module time to execute, time comparison
129
+
with previous build of each loader. It takes two input, one is the `filePath` which is
130
+
filename where all build details will be written and second one is `commitBuildInfo` which
131
+
is not mandatory but on basis of this flag, your `filePath file` gets git commited to your
132
+
`current checkout branch` and will also push it to remote origin.
133
+
`Note :- filePath option is mandatory, commitBuildInfo is not mandatory. But if you apply commitBuildInfo you should checkout the branch on your machine/server on which the filePath file should get committed before running your webpack build. Also the module count will only be visible when the outputFormat is 'humanVerbose'`,
0 commit comments