11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
![]() |
import { join } from 'node:path';
|
||
|
import { generateIndex } from '../src/render_templates.ts';
|
||
|
|
||
|
if (import.meta.main) {
|
||
|
const encoder = new TextEncoder();
|
||
|
Deno.writeFileSync(
|
||
|
join(import.meta.dirname ?? '', '../build/index.html'),
|
||
|
encoder.encode(generateIndex())
|
||
|
);
|
||
|
}
|