Open oniseijin opened 8 years ago
@Aivarass, can you take a look at this please?
As I understand you created a package.json and main.js which points to index.html. The problem is that index.html is a switcher rather than index. You need to make a few quick changes in order to make it work.
Although the comments about index.jsp/jsx aren't appliable here, I did the change in bundle.js that you suggested. Loaded fine without issue, well spotted.
now it is:
var defaultRealm = new Realm(global.require || globalResolve); if (typeof module !== 'undefined' && !global.window) { // for node.js module.exports = defaultRealm; } else { // for the browser global.realm = defaultRealm; }
Electron is the evolution of Atom Shell, which puts HTML5 into Desktops.
Understood there is some "post build" activities, like wiring up ipcRenderer to communicate with the main process but was hoping a default export of a rendered page would work. However: on v 1.3 of BRJS:
loading from a browserWindow.loadURL(url)
in bundle.js:
in module.js:
the error being the module is not found.
It might be a challenge to support however:
Net: hoping Electron is supported out of the box on BladeRunner! [PhoneGap integration is obviously next ;)]