1

我需要一个用于个人节点项目的系统托盘。我刚刚在 node.js 中找到了具有该功能的 node-webkit。

所以我想构建没有铬的node-webkit。可能吗?因为,它在文档中说“node-webkit 是定制铬的一部分”如果不是,有没有办法让 nw.exe 尽可能轻?

4

1 回答 1

2

Sure you can, if you look at the Node Webkit source code, you'll see that components like system tray are written in good old C++, so nothing prevents you from ripping out the bits you do not need.

That being said, are you sure you want to go this way? An installer for a Node Webkit-based application I wrote weighs in at under 30mb in total. For me, it's just not worth the effort to try and rip out bits I do not need.

于 2013-11-18T04:46:09.387 回答