statianzo / webpack-livereload-plugin

LiveReload during webpack --watch
ISC License
204 stars 51 forks source link

add scriptPort config option for Docker containers #41

Closed mcanfield closed 6 years ago

mcanfield commented 6 years ago

@statianzo please take a look to see if this is ok with you and let me know.

Basically the issue is that when running a livereload server within a Docker container the host port differs from the container port (e.g. 61028:35729). Adding this config allows for dynamically setting the script port so that the host machine can access the livereload server.

statianzo commented 6 years ago

Thanks for the PR, @mcanfield. This is a good case for adding the script tag manually to your html.

<!-- container port is 61028 -->
<script src="http://123.45.67.89:35729/livereload.js"></script>