1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

🔥 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 8d19c13b3c
commit 569fe051ef

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) {