Skip to content

Commit

Permalink
Only open on the first compile fixes #3020 (#3207)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Dec 14, 2017
1 parent a77d2e7 commit 8d722e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/gatsby/src/commands/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,9 @@ module.exports = async (program: any) => {
// if (isSuccessful && (isInteractive || isFirstCompile)) {
if (isSuccessful && isFirstCompile) {
printInstructions(program.sitePackageJson.name, urls, program.useYarn)
}

if (program.open) {
require(`opn`)(urls.localUrlForBrowser)
if (program.open) {
require(`opn`)(urls.localUrlForBrowser)
}
}

isFirstCompile = false
Expand Down

0 comments on commit 8d722e1

Please sign in to comment.