Skip to content

Commit

Permalink
Do same thing as #1694 for develop-html.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Aug 8, 2017
1 parent 1e35aa3 commit 0b08afe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/gatsby/src/utils/develop-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ module.exports = async (program: any) => {
}

// Remove the temp JS bundle file built for the static-site-generator-plugin
fs.unlinkSync(`${directory}/public/render-page.js`)
try {
fs.unlinkSync(`${directory}/public/render-page.js`)
} catch (e) {
// This function will fail on Windows with no further consequences.
}

return resolve(null, stats)
})
Expand Down

0 comments on commit 0b08afe

Please sign in to comment.