I have the webpack-dev-server with --hot enabled, and it works great ... for Javascript files. If I:
- create
/src/someFile.jswith the codedocument.write("Foo"); - add a
<script>referencing/src/someFile.jsto myindex.html - change
/src/someFile.jstodocument.write("Bar"); - my browser immediately updates to show "Bar" instead of "Foo"
However, if I have <p>Foo</p> on my index.html file, and change it to <p>Bar</p>, I don't see the change. If I refresh the page I do see the change though, so I know webpack is serving index.html; it's just not hot-swapping it when I save the file.
Does anyone know how I can fix webpack-dev-server to automatically update my HTML in response to file changes?