Skip to content

Commit

Permalink
Enable watchContentBase for webpack-dev-server (facebook#1546)
Browse files Browse the repository at this point in the history
Resolves facebook#1508
# Conflicts:
#	packages/react-dev-utils/webpackHotDevClient.js
  • Loading branch information
SpaceK33z committed Mar 7, 2017
1 parent 90cfb61 commit 23e4fe0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-cy-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23e4fe0

Please sign in to comment.