From 229a78c879a16ddc51357cc90aef85b43398b549 Mon Sep 17 00:00:00 2001 From: Lee Yeh Date: Tue, 13 Nov 2018 02:13:59 +0800 Subject: [PATCH] Added `NO_UPDATE_CHECK` environment flag (#457) --- bin/serve.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/serve.js b/bin/serve.js index cdbf9c30..5147cf0a 100755 --- a/bin/serve.js +++ b/bin/serve.js @@ -337,7 +337,9 @@ const loadConfig = async (cwd, entry, args) => { process.exit(1); } - await updateCheck(args['--debug']); + if (process.env.NO_UPDATE_CHECK !== '1') { + await updateCheck(args['--debug']); + } if (args['--version']) { console.log(pkg.version);