是否可以使用 node.js 开发 Google Chrome 扩展? [英] Is it possible to develop Google Chrome extensions using node.js?

查看:57
本文介绍了是否可以使用 node.js 开发 Google Chrome 扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用 node.js 开发 Google Chrome 扩展程序(因为我已经在 node.js 中编写了一个文本到歌曲"脚本,我想把它变成一个 Chrome 扩展程序.) 解决这个问题最直接的方法是什么?

I'd like to start developing Google Chrome extension using node.js (since I've already written a "text-to-song" script in node.js, and I'd like to turn it into a Chrome extension.) What would be the most straightforward way of approaching this problem?

推荐答案

其实就是这样.看看这个开发者直播.这也是我一直在寻找的东西,这会对您有所帮助.

Actually it is. Look at this Developers Live-cast. This is something I've been looking for as well, and this would help you.

这会将您的节点应用程序捆绑到您的浏览器中.这是repo

This brings your node applications bundled to your browser. Here is the repo!

我注意到我的这个旧答案时不时地得到点赞(谢谢大家).

I've noticed that this old answer of mine keeps getting upvotes now and then (thank you all).

但现在我更提倡使用网络应用程序,而不是将您的应用程序捆绑到许多平台(如 Chrome 商店或其他平台)中.您可以在 此处此处指示一些方向.

But nowadays I'm more an advocate of using web apps instead of bundling your application into many platforms like the chrome store or whatever. You can check the google's post here and here indicating some directions.

在实践中,我建议您开始使用 Service Worker 和渐进式内容构建具有离线功能的渐进式网络应用 (PWA).

In practice I advise for you to start building a progressive web app (PWA) with offline capabilities using service worker and progressive stuff.

如今网络上有大量资源,您可以提供更丰富的应用程序,如果您以正确的方式进行操作,可能会吸引更广泛的受众.

There are plenty of resources around the web nowadays and you can offer a much richer application that may achieve a much broader audience if you do it the right way.

再次感谢,代码写得很好.

Thanks again, and good coding.

这篇关于是否可以使用 node.js 开发 Google Chrome 扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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