I just noticed that there exist a discrepancy between launching node-webkit in preview and when exported.
In preview the following reference when injected as via the browser, throws a reference error, whereas when exporting it does not:
var fs = require('fs');
It would be great if both the preview and the export would equally load whatever library is needed to resolve the reference (node.js? perhaps).