Files
KashargulandGitHub 6013587c2c another tgui update (#17627)
* another tgui update

* Delete tgui/.vscode/extensions.json

* Delete tgui/.vscode/settings.json

* .
2025-04-28 23:00:48 +02:00

31 lines
625 B
JavaScript

/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/
import { reloadByondCache } from './reloader.js';
import { createCompiler } from './webpack.js';
const noHot = process.argv.includes('--no-hot');
const noTmp = process.argv.includes('--no-tmp');
const reloadOnce = process.argv.includes('--reload');
async function setupServer() {
const compiler = await createCompiler({
hot: !noHot,
useTmpFolder: !noTmp,
});
// Reload cache once
if (reloadOnce) {
await reloadByondCache(compiler.bundleDir);
return;
}
// Run a development server
await compiler.watch();
}
setupServer();