quartz/build.ts
@@ -61,7 +61,11 @@ directoryListing: false, }) const status = res.statusCode const statusString = status === 200 ? chalk.green(`[${status}]`) : chalk.red(`[${status}]`) const statusString = (status >= 200 && status < 300) ? chalk.green(`[${status}]`) : (status >= 300 && status < 400) ? chalk.yellow(`[${status}]`) : chalk.red(`[${status}]`) console.log(statusString + chalk.grey(` ${req.url}`)) }) server.listen(argv.port)