mirror of
https://github.com/wassname/talk.git
synced 2026-08-08 11:28:12 +08:00
fix: use custom webpackHotDevClient with debounced reload and filter unwanted warnings (#2314)
This commit is contained in:
@@ -573,7 +573,7 @@ export default function createWebpackConfig(
|
||||
// the line below with these two lines if you prefer the stock client:
|
||||
// require.resolve('webpack-dev-server/client') + '?/',
|
||||
// require.resolve('webpack/hot/dev-server'),
|
||||
require.resolve("react-dev-utils/webpackHotDevClient"),
|
||||
paths.appWebpackHotDevClient,
|
||||
];
|
||||
|
||||
return [
|
||||
|
||||
@@ -55,4 +55,6 @@ export default {
|
||||
appPublic: resolveApp("public"),
|
||||
appPackageJson: resolveApp("package.json"),
|
||||
appNodeModules: resolveApp("node_modules"),
|
||||
|
||||
appWebpackHotDevClient: resolveApp("scripts/webpackHotDevClient.js"),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user