mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03: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:
parent
e031b18b31
commit
4122d0334f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user