如何自动重新加载我正在开发的Chrome扩展程序? [英] How do I auto-reload a Chrome extension I'm developing?

查看:811
本文介绍了如何自动重新加载我正在开发的Chrome扩展程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望每次将文件保存在扩展文件夹中时都要重新加载我的扩展程序,而不必在chrome:// extensions /中显式单击重新加载。这可能吗?



编辑:我知道我可以更新Chrome重新加载扩展程序的时间间隔,这是一种中途解决方案,但我宁愿让我的编辑器(emacs或textmate)触发 - 保存重新加载或要求Chrome监控更改目录。

解决方案

您可以使用 Extensions Reloader 适用于Chrome:


使用扩展程序的工具栏按钮或浏览至 http://reload.extensions 重新加载所有未打包的扩展程序



如果您曾经开发过Chrome扩展程序,您可能希望
自动完成重新加载解包扩展的过程,而不需要
需要通过扩展页面。



Extensions Reloader允许您使用2种方式重新加载所有未打包的扩展


<1> - 扩展程序的工具栏按钮。



2 - 浏览至 http:// reload .b

工具栏图标将通过单击重新加载解压后的扩展。



通过浏览重新加载旨在自动执行重新加载过程
使用后期构建脚本 - 只需将浏览添加到
http: //reload.extensions ,并将
刷新为Chrome窗口。


更新:截至2015年1月14日,该扩展程序是开源的,提供GitHub


I'd like for my chrome extension to reload every time I save a file in the extension folder, without having to explicitly click "reload" in chrome://extensions/. Is this possible?

Edit: I'm aware I can update the interval at which Chrome reloads extensions, which is a half-way solution, but I'd rather either making my editor (emacs or textmate) trigger on-save a reload or asking Chrome to monitor the directory for changes.

解决方案

You can use "Extensions Reloader" for Chrome:

Reloads all unpacked extensions using the extension's toolbar button or by browsing to "http://reload.extensions"

If you've ever developed a Chrome extension, you might have wanted to automate the process of reloading your unpacked extension without the need of going through the extensions page.

"Extensions Reloader" allows you to reload all unpacked extensions using 2 ways:

1 - The extension's toolbar button.

2 - Browsing to "http://reload.extensions".

The toolbar icon will reload unpacked extensions using a single click.

The "reload by browsing" is intended for automating the reload process using "post build" scripts - just add a browse to "http://reload.extensions" using Chrome to your script, and you'll have a refreshed Chrome window.

Update: As of January 14, 2015, the extension is open-sourced and available on GitHub.

这篇关于如何自动重新加载我正在开发的Chrome扩展程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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