move game to play.html. move landing site to index
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user