move game to play.html. move landing site to index

This commit is contained in:
Kevin Ngo
2018-12-09 04:15:53 -08:00
parent 133d2d29d9
commit ad94549905
28 changed files with 1495 additions and 135 deletions

View File

@@ -19,7 +19,7 @@ nunjucks.addGlobal('IS_PRODUCTION', process.env.NODE_ENV === 'production');
nunjucks.addGlobal('COLORS', COLORS);
// Initial Nunjucks render.
fs.writeFileSync('index.html', nunjucks.render('index.html'));
fs.writeFileSync('play.html', nunjucks.render('index.html'));
// For development, watch HTML for changes to compile Nunjucks.
// The production Express server will handle Nunjucks by itself.
@@ -29,7 +29,7 @@ if (process.env.NODE_ENV !== 'production') {
return;
}
try {
fs.writeFileSync('index.html', nunjucks.render('index.html'));
fs.writeFileSync('play.html', nunjucks.render('index.html'));
} catch (e) {
console.error(e);
}