Skip to content

Commit 28624b3

Browse files
committed
fix(bin): add else blocks for multiline wrap, removed deep options event for now
1 parent 9267d0c commit 28624b3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

bin/webpack.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,6 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
340340
var lastHash = null;
341341
var compiler;
342342
try {
343-
insightReporter.trackEvent(
344-
insightEvents.onConfig("options-collected", {
345-
label: JSON.stringify(options),
346-
value: 1
347-
})
348-
);
349343
compiler = webpack(options);
350344
} catch(e) {
351345
var WebpackOptionsValidationError = require("../lib/WebpackOptionsValidationError");
@@ -407,14 +401,15 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
407401
}
408402
compiler.watch(watchOptions, compilerCallback);
409403
console.log("\nWebpack is watching the files…\n");
410-
} else
404+
} else {
411405
insightReporter.trackEvent(
412406
insightEvents.onBuild("build-start", {
413407
label: "compiler build start",
414408
value: 2
415409
})
416410
);
417-
compiler.run(compilerCallback);
411+
compiler.run(compilerCallback);
412+
}
418413
}
419414

420415
if(insight.optOut === undefined) {

0 commit comments

Comments
 (0)