Skip to content

Commit 23e4fe0

Browse files
committedMar 7, 2017
Enable watchContentBase for webpack-dev-server (facebook#1546)
Resolves facebook#1508 # Conflicts: # packages/react-dev-utils/webpackHotDevClient.js
1 parent 90cfb61 commit 23e4fe0

File tree

1 file changed

+2
-0
lines changed
  • packages/react-cy-scripts/scripts

1 file changed

+2
-0
lines changed
 

Diff for: ‎packages/react-cy-scripts/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)
Please sign in to comment.