Skip to content

Commit d1cf5c5

Browse files
Change the default output mode to human
1 parent 93089d1 commit d1cf5c5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ module.exports = class SpeedMeasurePlugin {
5555
if (this.timeEventData.loaders)
5656
outputObj.loaders = getLoadersOutput(this.timeEventData.loaders);
5757

58-
return this.options.outputFormat === "human"
59-
? getHumanOutput(outputObj)
60-
: JSON.stringify(outputObj, null, 2);
58+
return this.options.outputFormat === "json"
59+
? JSON.stringify(outputObj, null, 2)
60+
: getHumanOutput(outputObj);
6161
}
6262

6363
addTimeEvent(category, event, eventType, data = {}) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "speed-measure-webpack-plugin",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "A Webpack plugin, to help measure the speed of your other loaders and plugins",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)