summaryrefslogtreecommitdiff
path: root/client/build.js
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-05-18 00:15:28 +0200
committerrr- <rr-@sakuya.pl>2016-05-18 00:15:28 +0200
commit50404d5f5ec8bf676cfbe1a3268e3bcd2a36e5f6 (patch)
treed93fc4a7dbb59b4a003e4cd3a58943a998453d99 /client/build.js
parent407848706af00e2b9fa65d5acef552a7bf5e82fb (diff)
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.
Diffstat (limited to 'client/build.js')
-rw-r--r--client/build.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/build.js b/client/build.js
index 0581c3a..9b19337 100644
--- a/client/build.js
+++ b/client/build.js
@@ -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);
}