Commit 6ca52f3e authored by nkzawa's avatar nkzawa

use template literals for console.log

parent f2653d0e
......@@ -23,7 +23,7 @@ clean(dir)
.then(async () => {
const srv = new Server({ dir, dev: true, hotReload: true })
await srv.start(argv.port)
console.log('> Ready on http://localhost:%d', argv.port)
console.log(`> Ready on http://localhost:${argv.port}`)
// Check if pages dir exists and warn if not
if (!(await exists(join(dir, 'pages')))) {
......
......@@ -20,7 +20,7 @@ const dir = resolve(argv._[0] || '.')
const srv = new Server({ dir })
srv.start(argv.port)
.then(() => {
console.log('> Ready on http://localhost:%d', argv.port)
console.log(`> Ready on http://localhost:${argv.port}`)
})
.catch((err) => {
console.error(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment