We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a1873c commit cfd2635Copy full SHA for cfd2635
packages/react-scripts/config/webpack.config.dev.js
@@ -159,7 +159,13 @@ module.exports = {
159
{
160
exclude: [
161
/\.html$/,
162
- /\.(js|jsx)$/,
+ // We have to write /\.(js|jsx)(\?.*)?$/ rather than just /\.(js|jsx)$/
163
+ // because you might change the hot reloading server from the custom one
164
+ // to Webpack's built-in webpack-dev-server/client?/, which would not
165
+ // get properly excluded by /\.(js|jsx)$/ because of the query string.
166
+ // Webpack 2 fixes this, but for now we include this hack.
167
+ // https://github.com/facebookincubator/create-react-app/issues/1713
168
+ /\.(js|jsx)(\?.*)?$/,
169
/\.css$/,
170
/\.json$/,
171
/\.bmp$/,
0 commit comments