Add back a --hmr-port CLI flag.
Being able to do parcel --hmr-port 9999 index.html.
parcel --port 5555 index.html should point both HTTP server and HMR to port 5555.
The --hmr-port would override that value for HMR only.
The dev server itself should already support this. I think we just didn't add it as a CLI flag.
hi i like to work on this issue ,
i should add the --hmr-port to the hmrOptions var in parcel/packages/core/parcel/src/cli.js
am i correct
thanks you
Correct ๐
thanks i will make a pr
what should be the description to this flag
'--hmr-port':'hot module replacement port'
is this appropriate
hi @mischnic
i added '--hmr-port': 'hot module replacement port', to parcel/packages/core/parcel/src/cli.js :101 file
and to debug run in parcel/simple-example in path packages/examples/simple
parcel src/index.js --port 8080 command works fine but when i add --hmr-port , parcel src/index.js --port 8080 --hmr-port 9999
it show errors
is it not reading the arguments correctly .
thank you.
You need to do '--hmr-port <port>': 'hot module replacement port', so that the number following that is actually used as a HMR port and not as an entry folder.
thanks ,
now it is working
simple js example
html example
but i am getting this one test failed .
Open a PR with your changes, symlinks on Windows are a bit problematic - we'll see.
hi
opened pull request #5187
thank you