[英]How do i switch to a local version of a node_modules file that I've saved to desktop?
I'm trying to make some changes to the react-rte text editor but can't test it...我正在尝试对 react-rte 文本编辑器进行一些更改,但无法对其进行测试...
I've noticed literally nothing is coming through to the client after putting in console.logs, alerts, new code etc.我注意到在放入 console.logs、警报、新代码等之后,客户端实际上没有任何内容。
How do i proxy (?) or bounce the requests to 1 or 2 specific files in node_modules, so the webapp/node server pull in my local file saved on my desktop eg desktop/my-edited-file.js
.我如何代理(?)或将请求反弹到 node_modules 中的 1 或 2 个特定文件,以便 webapp/node 服务器拉入我保存在桌面上的本地文件,例如desktop/my-edited-file.js
。
Official File:官方文件:
my-project:
--node_modules/react-rte/lib/lib/EditorToolbar.js
▲ this file ▲
--pkg json
--ReadMe.md
--yarn.lock
--src/
----app.js
----header.js etc
Edited File:编辑文件:
/Users/DesLynham/desktop/myBalls.js
please help 😎🍺请帮忙😎🍺
您可以使用CharlesProxy 的 Map Local 功能将任何 HTTP 请求映射到您计算机上的本地文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.