client/build: fix templates with more than 1 _
This commit is contained in:
parent
d97a332d23
commit
bb3f280c7f
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ function bundleHtml(config) {
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
templatesHtml += util.format(
|
templatesHtml += util.format(
|
||||||
'<template id=\'%s-template\'>%s</template>',
|
'<template id=\'%s-template\'>%s</template>',
|
||||||
path.basename(file, '.hbs').replace('_', '-'),
|
path.basename(file, '.hbs').replace(/_/g, '-'),
|
||||||
fs.readFileSync(file));
|
fs.readFileSync(file));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue