is there a way to save css/js changes of remote resource between page reloads or map remote resource to local in devtools?

前端 未结 10 2153
时光说笑
时光说笑 2020-12-06 09:50

I know about Workspaces recently introduced in DevTools but that is not that i need. For example: page uses jquery that is loaded from CDN, i modify jquery library code, pre

10条回答
  •  感动是毒
    2020-12-06 10:33

    You got most of it, but here's the slight change:

    Make a change in the Styles pane (or in Sources), then click over to Sources, and when your modified file is open, hit ctrl-s.

    Then you can right-click the asset in the Sources list and hit Save As... and save the new modified file to disk.

    enter image description here

    There is no way to save a modified remote file without persisting it to disk and expect it to be changed on reload.

提交回复
热议问题