Skip to content

Conversation

@minhchu
Copy link
Contributor

@minhchu minhchu commented Jul 3, 2017

fix #180

export const watch = (appDir, port) => withLog(
() => spawnPreact(['watch', port ? `-p=${port}` : undefined], appDir),
export const watch = (appDir, host, port) => withLog(
() => spawnPreact(['watch', host ? `--host=${host}` : undefined, port ? `-p=${port}` : undefined], appDir),
Copy link
Member

@reznord reznord Jul 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is necessary to provide a host here separately. No harm specifying tho. Otherwise looks good to me !! :)

@preactjs preactjs deleted a comment from minhchu Jul 3, 2017
@reznord reznord merged commit 1582d5f into preactjs:master Jul 3, 2017
@rkostrzewski rkostrzewski added this to the 1.4.0 milestone Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot watch on specific host

3 participants