title: Can I use webpack's hot module reloading with sailsjs?
body: <p>I'm working on a project using <a href="http://sailsjs.org/" rel="noreferrer">sails.js</a> and <a href="https://facebook.github.io/react/" rel="noreferrer">react</a>. I'd like to be able to use Webpack's <a href="https://webpack.github.io/docs/hot-module-replacement.html" rel="noreferrer">hot module replacement</a> so I can edit my code and have it change on the browser instantly. However, it doesn't seem obvious how I can wire it all up.</p>
  
  <p>I'd like to be able to use <code>$ sails lift</code> and have it all just work.</p>
  
  <p>If this were a node.js project, I'd simply configure webpack to use <code>react-transform-hmr</code> and start <code>webpack-dev-server</code> from package.json (e.g. <a href="https://robots.thoughtbot.com/setting-up-webpack-for-react-and-hot-module-replacement" rel="noreferrer">as described here</a>). But, this doesn't seem a very <em>sails-y</em> thing todo.</p>
  
  <p>I see the module <a href="https://www.npmjs.com/package/webpack-hot-middleware" rel="noreferrer">webpack-hot-middleware</a> purports to be able to, "add hot reloading into an existing server without <code>webpack-dev-server</code>." However, I'm not sure where's the appropriate place to add Express middleware configuration in Sails >0.10.</p>
  
  <p>Can anybody recommend a good way to set this up?</p>