refactor: add listening message in cli tes

This commit is contained in:
Clark Du 2018-08-12 14:11:49 +01:00
parent b60c4fd432
commit 937dfe8183

View File

@ -1,3 +1,8 @@
export default { export default {
watch: ['~/custom.file'] watch: ['~/custom.file'],
hooks(hook) {
hook('listen', (server, { port, host }) => {
process.stdout.write(`Listening on http://${host}:${port}`)
})
}
} }