From cafb6ef8f96f0159f22de9e3eb89773709ec9e50 Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Mon, 19 Feb 2018 23:20:54 -0800 Subject: [PATCH] Add --hmr-port and --hmr-hostname options to parcel watch Fixes #575. --- src/cli.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/cli.js b/src/cli.js index 24eba68f1a2..5321091d874 100755 --- a/src/cli.js +++ b/src/cli.js @@ -62,6 +62,15 @@ program '--public-url ', 'set the public URL to serve on. defaults to the same as the --out-dir option' ) + .option( + '--hmr-port ', + 'set the port to serve HMR websockets, defaults to random', + parseInt + ) + .option( + '--hmr-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')