Skip to content

Commit 3d69f9d

Browse files
committed
fix(hooks): only print build warning for v2
1 parent b58ddce commit 3d69f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Cli.run = function run(processArgv) {
179179
return Q.nfcall(gulp.start.bind(gulp), argv._[0] + ':after');
180180
});
181181
} else {
182-
if (/serve|build|run|emulate|upload/.test(cmdName)) {
182+
if (/serve|build|run|emulate|upload/.test(cmdName) && argv.v2) {
183183
console.warn('WARN: No gulpfile found!');
184184
console.warn('If your app requires a build step, you may want to ensure it runs before ' + cmdName + '.\n');
185185
}

0 commit comments

Comments
 (0)