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