[Alt] Add new methods; [Server] Slight improvements to example; [Build] Add full HTML build

This commit is contained in:
2025-03-09 00:54:55 +01:00
parent 5338c8aaf6
commit fedb597dda
16 changed files with 1310 additions and 84 deletions

5
Example.Server/index.js Executable file → Normal file
View File

@ -14,7 +14,10 @@ const server = SpaccDotWebServer.setup({
});
if (SpaccDotWebServer.envIsNode && ['dump', 'html', 'writeStaticHtml'].includes(process.argv[2])) {
const fileName = server.writeStaticHtml(Number(process.argv[3] || 0));
const fileName = server.writeStaticHtml({
selfContained: Number(process.argv[3] || 0),
htmlFilePath: process.argv[4],
});
console.log(`Dumped Static HTML to '${fileName}'!`);
} else {
const serverData = server.initServer({