mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-06-16 02:14:50 +08:00
Fix hot reloading for WebpackDevServer after eject (#1721)
This commit is contained in:
@@ -123,7 +123,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$/,
|
||||
/\.svg$/
|
||||
|
||||
Reference in New Issue
Block a user