Skip to content

Commit

Permalink
Fix hot reloading for WebpackDevServer after eject (facebook#1721)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and athill committed May 24, 2017
1 parent 7a1873c commit cfd2635
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ module.exports = {
{
exclude: [
/\.html$/,
/\.(js|jsx)$/,
// We have to write /\.(js|jsx)(\?.*)?$/ rather than just /\.(js|jsx)$/
// because you might change the hot reloading server from the custom one
// to Webpack's built-in webpack-dev-server/client?/, which would not
// get properly excluded by /\.(js|jsx)$/ because of the query string.
// Webpack 2 fixes this, but for now we include this hack.
// https://github.com/facebookincubator/create-react-app/issues/1713
/\.(js|jsx)(\?.*)?$/,
/\.css$/,
/\.json$/,
/\.bmp$/,
Expand Down

0 comments on commit cfd2635

Please sign in to comment.