I\'m trying to use webpack-dev-server to compile files and start up a dev web server.
In my package.json I have the script property set to:
package.json
the right solution
Tell dev-server to watch the files served by the devServer.watchContentBase option.
dev-server
It is disabled by default.
When enabled, file changes will trigger a full page reload.
Example:
module.exports = { //... devServer: { // ... watchContentBase: true } };