misc: static appName/version display in client UI
This commit is contained in:
parent
6f60b5c6a2
commit
9dae9c5c9d
3 changed files with 5 additions and 7 deletions
|
|
@ -51,6 +51,6 @@ fs.writeFileSync(path.resolve(__dirname + '/../app/package.json'), JSON.stringif
|
|||
|
||||
var clientHtml = fs.readFileSync(path.resolve(__dirname + '/../src/html/client.html'))
|
||||
.toString()
|
||||
.replace(/\$\{version\}/g, appJson.version)
|
||||
.replace(/\$\{([^\}]+)\}/g, (m, p1)=>{return appJson[p1]})
|
||||
|
||||
fs.writeFileSync(path.resolve(__dirname + '/../app/client/index.html'), clientHtml)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue