--E:\develop\ ----node-webkit-v0.9.2-win-ia32 ----Sublime Text 2.0.2 x64
打开sublime text2 菜单->tools->build system->new build system,输入如下代码:
{ "cmd": ["nw", "${project_path:${folder}}"], "working_dir": "${project_path:${folder}}", "path": "E:\\develop\\node-webkit-v0.9.2-win-ia32" }
--G:\Temp\NodeWebkit-test ----index.html ----package.json
<!DOCTYPE html> <html> <head> <title>Hello World!</title> </head> <body> <h1>Hello World!</h1> We are using node.js <script>document.write(process.version)</script>. <button onclick="js:alert(‘hello‘)">click me</button> </body> </html>
{ "name": "nw-demo", "main": "index.html", "window":{ "toolbar":false, "frame":true } }
使用Sublime Text 2编辑和运行node-webkit应用程序,布布扣,bubuko.com
使用Sublime Text 2编辑和运行node-webkit应用程序
原文:http://www.cnblogs.com/beta2013/p/3811498.html