Search code examples
javascriptnode.jsnw.js

nw.js protect every .js file with nwjc tool


Is this possible to protect all files in project with nwjc tool and then package all this with nw-builder for example ?

Why this function only works with one file ? Official site says that they fixed performance issue in 0.22, but why there is no tool to protect all project files and include them like in index.html:

require('nw.gui').Window.get().evalNWBin(null, 'app/mytest.bin');


Solution

  • I found better way, i use grunt and with uglify tool compile all my project to one file, then with nwjc protect this file and include it to html. Works nice and i guess even faster because on 0.22 was fixed performance issue