client/build: fix templates with more than 1 _

This commit is contained in:
rr- 2016-04-10 22:13:52 +02:00
parent d97a332d23
commit bb3f280c7f

View file

@ -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));
}