mirror of
https://github.com/dbgate/dbgate
synced 2024-11-14 15:56:49 +00:00
9 lines
299 B
JavaScript
9 lines
299 B
JavaScript
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);
|
|
}
|