From 9bcd16a189b02609654e2525f5ad266f1a2e1d98 Mon Sep 17 00:00:00 2001 From: Kees Kluskens Date: Wed, 15 Feb 2017 03:41:31 +0100 Subject: [PATCH] Enable `watchContentBase` for webpack-dev-server (#1546) Resolves #1508 --- scripts/start.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/start.js b/scripts/start.js index 6943f6bb95b..0c0c41a30a4 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -249,6 +249,8 @@ function runDevServer(host, port, protocol) { // for some reason broken when imported through Webpack. If you just want to // use an image, put it in `src` and `import` it from JavaScript instead. contentBase: paths.appPublic, + // By default files from `contentBase` will not trigger a page reload. + watchContentBase: true, // Enable hot reloading server. It will provide /sockjs-node/ endpoint // for the WebpackDevServer client so it can learn when the files were // updated. The WebpackDevServer client is included as an entry point