Skip to content

Commit 9bcd16a

Browse files
SpaceK33zTimer
authored andcommitted
Enable watchContentBase for webpack-dev-server (facebook#1546)
Resolves facebook#1508
1 parent 9b5cccf commit 9bcd16a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/start.js

+2
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ function runDevServer(host, port, protocol) {
249249
// for some reason broken when imported through Webpack. If you just want to
250250
// use an image, put it in `src` and `import` it from JavaScript instead.
251251
contentBase: paths.appPublic,
252+
// By default files from `contentBase` will not trigger a page reload.
253+
watchContentBase: true,
252254
// Enable hot reloading server. It will provide /sockjs-node/ endpoint
253255
// for the WebpackDevServer client so it can learn when the files were
254256
// updated. The WebpackDevServer client is included as an entry point

0 commit comments

Comments
 (0)