summaryrefslogtreecommitdiff
path: root/client/build.js
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-04-10 22:13:52 +0200
committerrr- <rr-@sakuya.pl>2016-04-10 22:14:25 +0200
commitbb3f280c7f3772c49f8d37327c84fe8e48793575 (patch)
tree8d216cf219d9e60bd8630d540ee466c057e8cf63 /client/build.js
parentd97a332d23067f45cb663ef81417409a7a290310 (diff)
client/build: fix templates with more than 1 _
Diffstat (limited to 'client/build.js')
-rw-r--r--client/build.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/build.js b/client/build.js
index 827b4c0..80a7cf3 100644
--- a/client/build.js
+++ b/client/build.js
@@ -63,7 +63,7 @@ function bundleHtml(config) {
for (const file of files) {
templatesHtml += util.format(
'<template id=\'%s-template\'>%s</template>',
- path.basename(file, '.hbs').replace('_', '-'),
+ path.basename(file, '.hbs').replace(/_/g, '-'),
fs.readFileSync(file));
}