title: Inject webpack-dev-server.js
body: <p>I would like to inject the webpack-dev-server.js file.<br>
  However according to the documentation this should be done manually and only with the full url:</p>
  
  <p>From: <a href="http://webpack.github.io/docs/webpack-dev-server.html#api" rel="nofollow">http://webpack.github.io/docs/webpack-dev-server.html#api</a></p>
  
  <blockquote>
    <p>Notice that [...] there is no inline mode for WebpackDevServer API.
    <code>&lt;script src="http://localhost:8080/webpack-dev-server.js"&gt;&lt;/script&gt;</code>
    should be inserted to HTML page manually.</p>
  </blockquote>
  
  <p>From: <a href="http://webpack.github.io/docs/webpack-dev-server.html#hot-mode" rel="nofollow">http://webpack.github.io/docs/webpack-dev-server.html#hot-mode</a></p>
  
  <blockquote>
  <pre><code>&lt;!-- It is important that you point to the full url --&gt;
  &lt;script src="http://localhost:8080/webpack-dev-server.js"&gt;&lt;/script&gt;
  </code></pre>
  </blockquote>
  
  <p>What is the reason for those two points from the documentation?<br>
  Why wouldn't it be a good idea to inject a script tag like <code>&lt;script src="/webpack-dev-server.js"&gt;&lt;/script&gt;</code>?</p>
  
  <hr>
  
  <p>I have also opened an issue on github: <a href="https://github.com/webpack/webpack/issues/1285" rel="nofollow">https://github.com/webpack/webpack/issues/1285</a></p>