Skip to content

Commit

Permalink
Add --hmr-port and --hmr-hostname options to parcel watch
Browse files Browse the repository at this point in the history
Fixes #575.
  • Loading branch information
devongovett committed Feb 20, 2018
1 parent 595252c commit cafb6ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ program
'--public-url <url>',
'set the public URL to serve on. defaults to the same as the --out-dir option'
)
.option(
'--hmr-port <port>',
'set the port to serve HMR websockets, defaults to random',
parseInt
)
.option(
'--hmr-hostname <hostname>',
'set the hostname of HMR websockets, defaults to location.hostname of current window'
)
.option('--no-hmr', 'disable hot module replacement')
.option('--no-cache', 'disable the filesystem cache')
.option('--no-source-maps', 'disable sourcemaps')
Expand Down

0 comments on commit cafb6ef

Please sign in to comment.