Skip to content

Commit 7b406a3

Browse files
committed
Fix check for smoke test
1 parent f0cc6b2 commit 7b406a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/start.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ var config = require('../config/webpack.config.dev');
1616
var execSync = require('child_process').execSync;
1717
var opn = require('opn');
1818

19+
function isSmokeTest() {
20+
return process.argv.some(function (item) { return item.indexOf('--smoke-test') > -1 });
21+
}
22+
1923
// TODO: hide this behind a flag and eliminate dead code on eject.
2024
// This shouldn't be exposed to the user.
2125
var handleCompile;
22-
if (process.argv[2] === '--smoke-test') {
26+
if (isSmokeTest()) {
2327
handleCompile = function (err, stats) {
2428
if (err || stats.hasErrors() || stats.hasWarnings()) {
2529
process.exit(1);

0 commit comments

Comments
 (0)