Skip to content

Commit

Permalink
Remove render-page.js.map from public folder
Browse files Browse the repository at this point in the history
This file is not required in production and it may leak too much information
about the folder structure and/or user name
  • Loading branch information
tomazy committed Dec 23, 2017
1 parent ecfc048 commit aeaf3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby/src/commands/build-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = async (program: any) => {
// Remove the temp JS bundle file built for the static-site-generator-plugin
try {
fs.unlinkSync(outputFile)
fs.unlinkSync(`${outputFile}.map`)
} catch (e) {
// This function will fail on Windows with no further consequences.
}
Expand Down

0 comments on commit aeaf3d9

Please sign in to comment.