fix(bin): add else blocks for multiline wrap, removed deep options event for now

This commit is contained in:
Sean Larkin 2017-11-06 11:32:07 -08:00
parent 9267d0c498
commit 28624b3834
No known key found for this signature in database
GPG Key ID: B24730E407776925
1 changed files with 3 additions and 8 deletions

View File

@ -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) {