score:4

Accepted answer

webpack-dev-server apparently does not compile your code to disk, but rather keeps it in memory. this means you need to either manually compile your changes, or run webpack --watch in the background as you make changes if you want the changes reflected in your compiled file. i learned the hard way.

after digging a little deeper into the webpack-dev-server docs:

this modified bundle is served from memory at the relative path specified in publicpath (see api). it will not be written to your configured output directory. where a bundle already exists at the same url path, the bundle in memory takes precedence (by default).


Related Query

More Query from same tag