We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0cc6b2 commit 7b406a3Copy full SHA for 7b406a3
scripts/start.js
@@ -16,10 +16,14 @@ var config = require('../config/webpack.config.dev');
16
var execSync = require('child_process').execSync;
17
var opn = require('opn');
18
19
+function isSmokeTest() {
20
+ return process.argv.some(function (item) { return item.indexOf('--smoke-test') > -1 });
21
+}
22
+
23
// TODO: hide this behind a flag and eliminate dead code on eject.
24
// This shouldn't be exposed to the user.
25
var handleCompile;
-if (process.argv[2] === '--smoke-test') {
26
+if (isSmokeTest()) {
27
handleCompile = function (err, stats) {
28
if (err || stats.hasErrors() || stats.hasWarnings()) {
29
process.exit(1);
0 commit comments