diff --git a/packages/gatsby/src/commands/build-html.js b/packages/gatsby/src/commands/build-html.js index 2ebd8d3bd3b14..aba29d71de0ae 100644 --- a/packages/gatsby/src/commands/build-html.js +++ b/packages/gatsby/src/commands/build-html.js @@ -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. }