client/general: change templates extension
...from .Handlebars' (which the project no longer uses) .hbs, to a more generic .tpl. Additionally, replace hyphens with underscores for consistency.
This commit is contained in:
parent
407848706a
commit
50404d5f5e
client
build.js
html
endless_pager.tplendless_pager_page.tplfile_dropper.tplhelp.tplhelp_about.tplhelp_comments.tplhelp_keyboard.tplhelp_search.tplhelp_search_general.tplhelp_search_posts.tplhelp_search_tags.tplhelp_search_users.tplhelp_tos.tplhome.tpllogin.tplmanual_pager.tplmanual_pager_nav.tplpassword_reset.tplsettings.tpltag.tpltag_categories.tpltag_delete.tpltag_merge.tpltag_summary.tpltags_header.tpltags_page.tpltop_nav.tpluser.tpluser_delete.tpluser_edit.tpluser_registration.tpluser_summary.tplusers_header.tplusers_page.tpl
@ -63,10 +63,10 @@ function bundleHtml(config) {
|
||||
collapseWhitespace: true,
|
||||
conservativeCollapse: true,
|
||||
};
|
||||
glob('./html/**/*.hbs', {}, (er, files) => {
|
||||
glob('./html/**/*.tpl', {}, (er, files) => {
|
||||
let templates = {};
|
||||
for (const file of files) {
|
||||
const name = path.basename(file, '.hbs').replace(/_/g, '-');
|
||||
const name = path.basename(file, '.tpl').replace(/_/g, '-');
|
||||
templates[name] = minify(
|
||||
fs.readFileSync(file, 'utf-8'), minifyOptions);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user