I followed the guide here, and updated it to work with a more recent version of node/webpack etc.
This means my webpack looks like this: