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