有没有办法保存在页面重新加载或映射远程资源之间的远程资源的css / js更改devtools本地? [英] is there a way to save css/js changes of remote resource between page reloads or map remote resource to local in devtools?

查看:343
本文介绍了有没有办法保存在页面重新加载或映射远程资源之间的远程资源的css / js更改devtools本地?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道最近在DevTools中引入的工作区,但这不是我需要的。例如:页面使用从CDN加载的jquery,我修改jquery库代码,按ctrl-s,重新加载页面 - >修改丢失。或者我想调试一些网站,我没有能力改变文件。



我不想只保存更改,如保存CSS - 在浏览时,如何将css文件从chrome dev或firebug保存到本地目录,我希望他们在页面重新加载之间保持。

解决方案<



在样式窗格(或源)中进行更改,然后单击源 ,当您修改的文件打开时,点击 ctrl-s



然后,您可以在来源列表中右键单击资产,并点击另存为... ,并将新修改的文​​件保存到磁盘。



>



没有办法保存修改的远程文件而不将其保存到磁盘,并希望在重新加载时更改。


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, press ctrl-s, reload page -> modifications are lost. Or i want to debug some site i don't have an ability to change files of.

I don't want only save changes as in save CSS - while browsing, how can I save the css files from inside chrome dev or firebug to local directory, i want them to persist between page reloads.

解决方案

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.

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

这篇关于有没有办法保存在页面重新加载或映射远程资源之间的远程资源的css / js更改devtools本地?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆