title: How to connect Mongo DB in a webpack dev server
body: <p>I would like to connect to Mongo DB using a webpack dev server. While the connection using the node mongodb driver and configuring in server.js is direct and straight forward, I am thinking of a way to do the same using webpack dev server in development (mainly for the hot loading advantage). </p>
  
  <p>I understand that there is a way of achieving the same using a webpack middleware, but is there another easier and better way of doing it.</p>