mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 19:56:00 +00:00
html files for pages
This commit is contained in:
8
packages/web/build-index.js
Normal file
8
packages/web/build-index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const fs = require('fs');
|
||||
|
||||
const template = fs.readFileSync('./index.html.tpl', 'utf-8');
|
||||
|
||||
for (const page of ['', 'not-logged', 'error', 'admin-login', 'login', 'admin', 'license']) {
|
||||
const text = template.replace(/{{page}}/g, page);
|
||||
fs.writeFileSync(`public/${page || 'index'}.html`, text);
|
||||
}
|
||||
Reference in New Issue
Block a user