From 28624b3834b9893db92df3f1b4a987428ec96954 Mon Sep 17 00:00:00 2001 From: Sean Larkin Date: Mon, 6 Nov 2017 11:32:07 -0800 Subject: [PATCH] fix(bin): add else blocks for multiline wrap, removed deep options event for now --- bin/webpack.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/webpack.js b/bin/webpack.js index 7dc2da421..411547f8c 100755 --- a/bin/webpack.js +++ b/bin/webpack.js @@ -340,12 +340,6 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => { var lastHash = null; var compiler; try { - insightReporter.trackEvent( - insightEvents.onConfig("options-collected", { - label: JSON.stringify(options), - value: 1 - }) - ); compiler = webpack(options); } catch(e) { var WebpackOptionsValidationError = require("../lib/WebpackOptionsValidationError"); @@ -407,14 +401,15 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => { } compiler.watch(watchOptions, compilerCallback); console.log("\nWebpack is watching the files…\n"); - } else + } else { insightReporter.trackEvent( insightEvents.onBuild("build-start", { label: "compiler build start", value: 2 }) ); - compiler.run(compilerCallback); + compiler.run(compilerCallback); + } } if(insight.optOut === undefined) {