phonegap / phonegap-template-react-hot-loader

PhoneGap Template using React, ES2015, Webpack, and hot module reloading
MIT License
79 stars 21 forks source link

Error occurred trying to load cordova.js #1

Closed blefebvre closed 8 years ago

blefebvre commented 8 years ago

To reproduce:

Result:

screen shot 2016-04-16 at 2 16 15 pm

devgeeks commented 8 years ago

Yeah, that's kinda to be expected. The hot loader server is really more about the HTML/CSS/JS, it doesn't know what platform cordova.js to serve. That would be a great addition if I could work it out.

At the moment, the hot reloading part of the plugin is more useful for iterating on the UI and the logic of the components.

I'll ask around the team and see if they have an idea how we could do it. Maybe at the very least it could serve the browser platform version of cordova.js

devgeeks commented 8 years ago

Another awesome feature would be to build in something like phonegap serve that could use some kind of black magic to serve the hot reloading server to the PhoneGap Developer App.

blefebvre commented 8 years ago

Thanks for the quick response @devgeeks! I'll move over to the PG Dev app when I need to work on plugin-dependant functionality.

devgeeks commented 8 years ago

Best you can hope for with phonegap serve for now is

npm run prepare -- browser && phonegap serve

I am looking into it though...