🔥 Remove handlebars from serving admin (#593)

refs TryGhost/Ghost#8140
refs TryGhost/Ghost#8184

- now that the admin index page is just html, we don't need handlebars anymore
- this changes the template be called .html to reflect this
This commit is contained in:
Hannah Wolfe 2017-03-20 12:01:06 +00:00 committed by Kevin Ansfield
parent e031b18b31
commit 4122d0334f

View File

@ -37,9 +37,9 @@ module.exports = {
fs.ensureDirSync(assetsOut);
if (fs.existsSync(results.directory + '/index.min.html')) {
fs.copySync(results.directory + '/index.min.html', `${templateOutDir}/default-prod.hbs`, {overwrite: true});
fs.copySync(results.directory + '/index.min.html', `${templateOutDir}/default-prod.html`, {overwrite: true});
} else {
fs.copySync(results.directory + '/index.html', `${templateOutDir}/default.hbs`, {overwrite: true});
fs.copySync(results.directory + '/index.html', `${templateOutDir}/default.html`, {overwrite: true});
}
assets.forEach(function (relativePath) {