Skip to content

Commit

Permalink
Added NO_UPDATE_CHECK environment flag (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyeh authored and leo committed Nov 12, 2018
1 parent 2a7f8d2 commit 229a78c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 229a78c

Please sign in to comment.