Make sure you have port 8080 (or whatever you use) open on the remote machine!! Don't be like Vinney.
I'm no webpack expert (in fact this is the first project I've set up by hand ever...), but if you know what you're doing you should be able to change the relevant parts of this to fit your project:
# webpack.config.js
module.exports = {