[英]How to disable hot reload in create-react-app?
How to disable hot reload in create-react-app and reload browser only manually?如何在 create-react-app 中禁用热重载并仅手动重载浏览器? Currently it reloads after every change in project.
目前,它会在项目每次更改后重新加载。 I'm using Firefox and tried to block request
localhost:3000/sockjs-node/*
how is suggested here but it doesn't work.我正在使用 Firefox 并试图阻止请求
localhost:3000/sockjs-node/*
在这里建议如何,但它不起作用。
Blocking localhost:3000/sockjs-node/*
only blocks requests for the /sockjs-node/
path (note the trailing /
) and all subpaths.阻止
localhost:3000/sockjs-node/*
只会阻止对/sockjs-node/
路径(注意尾随/
)和所有子路径的请求。 This will not block requests made to localhost:3000/sockjs-node
, which is what CRA uses for hot reloading.这不会阻止对
localhost:3000/sockjs-node
请求,这是 CRA 用于热重载的。 Change your request blocking filter to localhost:3000/sockjs-node
.将您的请求阻塞过滤器更改为
localhost:3000/sockjs-node
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.