function createWebsite(htmlCode) {
    // fs.writeFile('./dist/team.html', htmlCode, function(error) {
    fs.writeFile(path.join(__dirname, 'dist','team.html'), htmlCode, function(error) {
        if (error) {
            throw error;
        }
    })
}
// Exports HTML file to a separate folder
Exports HTML file to a separate folder
Exports HTML file to a separate folder
function createWebsite(htmlCode) {
    fs.writeFile(path.join(__dirname, 'dist','team.html'), htmlCode, function(error) {
        if (error) {
            throw error;
        }
    })
}
function createWebsite ( htmlCode ) { fs . writeFile ( path . join ( __dirname , 'dist' , 'team.html' ) , htmlCode , function ( error ) { if ( error ) { throw error ; } } ) }
Exports HTML file to a separate folder
Exports HTML file to a separate folder
// fs.writeFile('./dist/team.html', htmlCode, function(error) {