Skip to content

Commit

Permalink
refactor: update ready message
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed May 2, 2024
1 parent 8c08240 commit e7cb5af
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/dev_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,9 @@ export class DevServer {
.useColors(this.#colors)
.useRenderer(this.#logger.getRenderer())
.add(`Server address: ${this.#colors.cyan(`http://${host}:${message.port}`)}`)
.add(
`File system watcher: ${this.#colors.cyan(
`${this.#isWatching ? 'enabled' : 'disabled'}`
)}`
)

const watchMode = this.#options.hmr ? 'HMR' : this.#isWatching ? 'Watching' : 'Non-Watching'
displayMessage.add(`Mode: ${this.#colors.cyan(watchMode)}`)

if (message.duration) {
displayMessage.add(`Ready in: ${this.#colors.cyan(prettyHrtime(message.duration))}`)
Expand Down

0 comments on commit e7cb5af

Please sign in to comment.