如何使用Tincr谷歌浏览器扩展程序实时重新加载本地文件 [英] How to use the Tincr Google Chrome extension for live reloading local files

查看:237
本文介绍了如何使用Tincr谷歌浏览器扩展程序实时重新加载本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试过在Windows和Linux(Ubuntu)上使用Tincr Chrome扩展程序,它似乎还没有做Live Reloading它声称上的noreferrer> 。 Tin.cr网站声称:


您在任何编辑器中对Chrome
所做的任何CSS或JavaScript更改都不会刷新整个为了进一步解释,我已经尝试在Chrome浏览器中安装此扩展程序,并在 chrome:// chrome / extensions / ,如 Tincr文档所示。我也曾尝试直接通过Chrome网上应用店安装此扩展程序。



在设置Tincr方面,我试图在没有web服务器的情况下在本地打开我的文件,使用 file: //c:/htdocs/file.html Tincr在其文档中声称它可以自动读取而不需要任何设置,并且我也尝试通过本地主机上的Apache Web服务器打开我的文件,例如 localhost / file.html 并按照文档中的建议将Tincr中的项目类型设置为 Http Web Server 这两种方式都无济于事。



在编辑本地文件方面,我使用了许多不同的外部编辑器,例如,Ubuntu和Titanium Studio上的Geany



在编辑器中编辑文件后,我已经离开了我正在编辑的页面,并使用Tincr插件设置在我的Chrome浏览器中打开并启用。然而,在编辑器中保存我的文件并查看它是否在Chrome中重新加载后,没有任何反应。该文件保持不变。再次重申,Windows和Linux(Ubuntu)都会发生这种情况。



所以我的问题是这样的:有没有人成功地尝试过使用这种扩展与外部编辑器如果可以的话,请详细说明让现场重新加载工作的步骤,因为我开始认为这可能是扩展中的一个错误? 解决方案

我想我可能会有一个解释。查看Tincr的谷歌组,看起来 Tincr不支持HTML文件刷新,并且它只能检测到css或javascript中的更改

>

来源: https:// groups.google.com/forum/#!topic/tincr-for-chrome-devtools/VyC0mavLs_A


I have tried using the Tincr Chrome Extension now on Windows and Linux (Ubuntu) and it still does not seem to do the Live Reloading it claims to on its website when I am editing the file in an external editor. The Tin.cr website claims:

Any CSS or JavaScript changes you make in any editor reloads in Chrome without refreshing the whole page

To explain further, I have tried installing this extension as an unpacked extension in Chrome with Developer Mode checked under chrome://chrome/extensions/ as suggested in the Tincr documentation. I have also tried installing this extension directly through the Chrome Web Store. The effect has been the same.

In terms of setting up Tincr, I have tried opening up my file locally without a web server using file://C:/htdocs/file.html which Tincr claims in its documentation it can read automatically without needing any setup, and also I have tried opening up my file via an Apache Web Server on localhost e.g. localhost/file.html and setting up the Project Type in Tincr as Http Web Server as suggested in the documentation, but both ways have been to no avail.

In terms of editing my local file, I have used a number of different external editors, for example, Geany on Ubuntu and Titanium Studio on Windows.

After editing the file in the editor I have left the page I am editing open in my Chrome browser with the Tincr plugin setup and enabled. However, after saving my file in the editor and looking to see if it live reloads in Chrome, nothing happens. The file simply stays the same. Again, to reiterate, this is happening in both Windows and Linux (Ubuntu).

And so my question is this: has anyone successful tried using this extension with an external editor and if so could you please detail the steps to get live reload to work as I'm beginning to think this may be a bug in the extension?

解决方案

I think I may have an explaination. Having a look at the google groups for Tincr, it appears Tincr does not support html file refresh, and that it can only detect changes in either css or javascript.

source: https://groups.google.com/forum/#!topic/tincr-for-chrome-devtools/VyC0mavLs_A

这篇关于如何使用Tincr谷歌浏览器扩展程序实时重新加载本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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