fix(bin): add else blocks for multiline wrap, removed deep options event for now
This commit is contained in:
parent
9267d0c498
commit
28624b3834
|
@ -340,12 +340,6 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
|
||||||
var lastHash = null;
|
var lastHash = null;
|
||||||
var compiler;
|
var compiler;
|
||||||
try {
|
try {
|
||||||
insightReporter.trackEvent(
|
|
||||||
insightEvents.onConfig("options-collected", {
|
|
||||||
label: JSON.stringify(options),
|
|
||||||
value: 1
|
|
||||||
})
|
|
||||||
);
|
|
||||||
compiler = webpack(options);
|
compiler = webpack(options);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
var WebpackOptionsValidationError = require("../lib/WebpackOptionsValidationError");
|
var WebpackOptionsValidationError = require("../lib/WebpackOptionsValidationError");
|
||||||
|
@ -407,14 +401,15 @@ yargs.parse(process.argv.slice(2), (err, argv, output) => {
|
||||||
}
|
}
|
||||||
compiler.watch(watchOptions, compilerCallback);
|
compiler.watch(watchOptions, compilerCallback);
|
||||||
console.log("\nWebpack is watching the files…\n");
|
console.log("\nWebpack is watching the files…\n");
|
||||||
} else
|
} else {
|
||||||
insightReporter.trackEvent(
|
insightReporter.trackEvent(
|
||||||
insightEvents.onBuild("build-start", {
|
insightEvents.onBuild("build-start", {
|
||||||
label: "compiler build start",
|
label: "compiler build start",
|
||||||
value: 2
|
value: 2
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
compiler.run(compilerCallback);
|
compiler.run(compilerCallback);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(insight.optOut === undefined) {
|
if(insight.optOut === undefined) {
|
||||||
|
|
Loading…
Reference in New Issue