Skip to content

Commit 937dfe8

Browse files
committed
refactor: add listening message in cli tes
1 parent b60c4fd commit 937dfe8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/fixtures/cli/nuxt.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
export default {
2-
watch: ['~/custom.file']
2+
watch: ['~/custom.file'],
3+
hooks(hook) {
4+
hook('listen', (server, { port, host }) => {
5+
process.stdout.write(`Listening on http://${host}:${port}`)
6+
})
7+
}
38
}

0 commit comments

Comments
 (0)