Created
March 10, 2020 07:44
-
-
Save kartiknair/f83bb1b50ec138b7bdc2ac565ef53974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addHomePage = posts => { | |
fs.writeFile(`${config.dev.outdir}/index.html`, homepage(posts), e => { | |
if (e) throw e; | |
console.log(`index.html was created successfully`); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment